Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I need to develop a web-service. Purpose of this service is read a oracle blob field(stores image file) and send to the client. Do you think which format is suitable for this blob field. If i send byteArray type, can client convert this to image. This method easy i can do that but according to the my google research image files or other file types can be sent url download link. Which is more sensible? My environment: j2ee,cxf,eclipse,soap
In your wer-service read it as BLOB and then to Byte Array.
but to send it in response, you may need to put it in a proper content-type i.e either "image/jpeg" or "image/png" or whatever is right.
And also , you may need to send it as attachment in your response.
If its SOAP service then, SOAP with Attachement
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have a requirement of sending the email with the attachment of a file. I found few online java code but that is through gmail/yahoo with login credentials. But I want to send it as anonymous instead of logging in.
Similar to what is available in oracle plsql UTIL_SMTP
Any body can help here!
Thanks inadvance
Basic steps:
Have your server configured to allow you to send mail without authentication.
Use Java Mail API. Create a session using Java Mail API as described here in another SO question: Send mail in javax.mail without authentication
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am using HTTPS protocol on my website. I am not using any encryption mechanism on request parameters are going (username, password, a/c details etc). It is Ok?
The request parameters aren't visible to any observers between you and the server. You don't need to encrypt anything yourself.
Just make sure the form is passed as a POST, as the URL may be stored in logs or otherwise be seen on the server or client end.
My two cents: do not copy request parameters directly on to HTML objects likewise by using scriptlet <% = request.getParameter("some_param")%>
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Parsing Json : When i put the URL in browser doesn't work but when i put the url in jsonViewer i can see the data
It is possible that the server handling the url only serves a response to requests with the Content-Type header of 'application/json'. http://jsonviewer.stack.hu/ might be automatically setting the Content-Type header in the http request to 'application/json'. So it works from http://jsonviewer.stack.hu/, but not when you simply paste the url in your browser. This is just a guess.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm using Google translator, sorry for the typos.
My scenario is as follows. I have a WebService Restfull and an Android client using Jersey and JSON in Java. Can receive data and send them, my doubts are:
How receive JSON strings of images and saves it to a directory on WebService?
I need examples of methods that perform this task.
You can parse the image from json using AsyncTask to get the image from the server and convert it into the bitmap and set it in your views.
Below are some of the examples which shows how to load image from JSON response:
JSON parsing and Image Loading
Android JSON parsing to load image
Hope this will guide you.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to get exact video link from some streaming video resources like you-tube or metacafe.com, As there is no direct link of video is available. How can I parse the video
link. Also how to use java to download a streaming video from http url to local system?
Thanks!
I used a library called HTMLParser before. It can read html input and generate HTML nodes. You can then analyze and retrieve the node you like.