How to download image data via JSON and save it app sandbox? - iphone

If a web service is returning not image URLs but raw image data then how to grab it and to save it to app sandbox? Where should those images be saved for later use?
PS. Any code snippets would be appreciated :)
UPDATE: image data comes base64 encoded as a set of characters.

Related

How to add images webservice?

I have a web-service which accepts image data.Anyone guide me how do I sent image file which I have captured from my phone to the services on a button click?. I searched the smartface docs and also the website I got an idea of uploading to a Web-client but didn't find anything of how to upload data to SOAP services.
Thanks.
I don't know what kind of data does your webservice except.
If you are using capture function of camare, you will be able to reach the path of photo.
http://www.smartface.io/developer/guides/device/camera-usage-2/#capture
Also, you can save the captured photo, and use it by the name you gived.
http://www.smartface.io/developer/guides/device/camera-usage-2/#save
If these documents don't help, can you share the url of service in order for me to check it?

How to pass base64 jpeg image to ogimage?

I have image that is being generated in runtime on my website and I display it in html using
img src="data:image/jpeg;base64,<!-- base64 data -->"
Now, I want for Facebook to fetch this image, but if I do the same for og:image meta tag, facebook debugger gives me an error. Any solution?
meta property='og:image' content='data:image/jpeg;base64,<!-- base64 data -->'
Of course, I would like to avoid permanent saving of files since they are always different and it would get too crowded very quickly.
Reference URL: http://www.seemasandesh.com/epaper.aspx?blogid=9
Not possible. It have to be a public url so Facebook can download it when they need it. They will just cache it so there need to be a url to the original image

Using Parse REST API to link an uploaded image to a parse object, getting access denied when accessing image

I'm using the sample code provided in the REST API docs for uploading an image (my own) and then assigning it to an object in an image table. Image uploads fine, code for associating the image runs fine, and a record is created in the DB.
However, if I try to access the image from the data browser, I get ACCESS DENIED. Why is this so? The image is retrievable via the URL provided after a successful upload, but doesn't appear anywhere in the Parse web UI (should it be ihe Files section of Cloud Code?).
Any input would be helpful. I am working on a few wrinkles to get it working.
The answer to this question is to use the long filename provided in the image upload confirm, and not the short filename example shown in the docs.

Image fetch or download from webservice

I stored images in server via php code. When i run the code in browser it displays only image name like string. Then im using JSON framework for fetching images from server. Is it possible to fetch image from server? Somebody told, it's not possible to fetch image from server. You need to use image URL otherwise it can't. What can i do?

filepicker.io - on .pick / pickAndStore use generated thumbnail

When the file picker is opened either using .pick or .pickAndStore, and an image is selected, a thumbnail of the original image is shown on the side.
I want to reuse that thumbnail, preferably from the already locally stored version. How can I access it e.g., with the filepicker API or other javascript library?
The thumbnail you see during uploading is generated by FilePicker javascript as a data URI (eg, src="data:image/jpeg;base64,...") it never really exists.
Once the file is uploaded you can use the image conversion rest API:
https://developers.inkfilepicker.com/docs/web/#inkblob-images