I have a 360º jpeg file that works fine if upload to Facebook using its regular page.
When I try to upload the same file using restfb the image becomes "flat".
Does anybody know something specific to make it work with restfb?
You simply need to add the additional parameter allow_spherical_photo=true.
Related
I need to upload images and i want to show all of images in another page. I have tried to use volley, but it need to encode and decode to show all images. It made my application not responding when i decode all the string of images.
My questions are:
Are there any ways to upload images beside volley?
Are there any ways to upload images using volley without convert them to string (encode)?
Thanks
I implemented it once by positing multi part file using HttpUrlConnection.
Basically you provide the image file input stream, the desired file name and the file's MIME type.
You can access the source code through this link:
https://github.com/MinaSamy/DailySelfie/blob/master/app/src/main/java/bloodstone/dailyselfie/android/utils/PostMultiPart.java
I have uploading of pictures in an appengine application. Pictures was saved in blobstore. It uses the html input file.
In addition to that, I want to allow users to save pictures from the internet to the blobstore. If the user have url of a valid picture, I want the picture to be save in blobstore. Is it possible? How to implement this functionality?
e.g. The user will just input url ex. http://domain.com/picture001.jpg then image will be stored in blobstore. Not just the url the picture itself.
Thanks
Use URLFetch to retrieve the image bytes and then use the Files API to write the bytes you fetched to the blobstore.
I'm able to
-Upload an image to the blobstore
-Transform this image (in my case rescale it)
But I don't seem to be able to find out how I can store the transformed image back to Blobstore.
Any ideas?
BR,
As far as I know, this is currently only an experimental feature. You can create a "file" using createNewBlobFile.
Get more information here: Writing Files to the Blobstore (Experimental).
Is it possible send a image or file from an java applet to a php script which produce a pdf.
Until now my java applet has the opportunity that you can save a screenshot of the applet in the users chosen directory and the user can save the test results in form of a pdf. But I want t combine it to one file and I would like to avoid to work with a database.
Yes, it wouldn't even make sense to use a database for this (unless that is the source of the test results). Just upload the screenshot/results as one POST request and then generate PDF with PHP.
So what you want is to render the PDF combining both, the image and the test results right? The processing Framework has a nice Render2PDF function. Integrate it in your project and u wont need this PHP stuff which comes directly from hell.
Radek
I have image URLs like http://example.com/someimage.png - how do I fetch that image and save it with Blob? Thanks.
Here's example code from the documentation showing how to write a file to the blobstore. You'll have to use a stream instead of a writer, since a PNG image is binary, and you'll have to set the appropriate content type, but it should show you the way.
And here's the UrlFetch documentation, explaining how to get some available resource on the web, using HTTP.