I'm sending emails with embedded images through java class and in iPad2 the email client shows the body information correctly, except that repeats again the images embedded below the body (it seems that attach them). The images are .png instead o .jpg.
Does anyone have any idea about this problem?.
Related
In simple words, Client will give image PATH in my textarea all those images should be saved in my server DB. Please give some code or idea to achieve this.
Note: Client may put more than one image URL in the textbox. I want to send all the images to the server.
You should tell us ,which clint are you useing.And if there is any framwork,like struts or others.
I am using javamail for sending emails. My requirement is to get read receipt from the recipient.
So far from my search on the net I have come across to some third party services which uses Images for this purpose. One drawback I have seen in those services is that in gmail we have to click on display image to open the images, and if user doesn't click on it then we can't get the read receipt from user even if he has read the mail.
So my question is what are the other ways to get read receipt. Without using third party services.
Thanks in advance.
There's no reliable way to do that, mostly because it's a privacy issue. You can ask for a Message Disposition Notification, but at best the client will ask the recipient whether to send a return receipt. As you know, you can also embed an image that will get loaded when a message is viewed as HTML, but (1) some people will still view plain text instead of HTML, and (2) image loading is blocked by most HTML mail programs specifically to prevent what you're trying to do.
I have a requirement to load big images into chrome browser, in pieces from the server and after it finishes downloading the file completely, if the user wants to look at the file again, then the browser should load it from its cache.
I have done the following to achieve this:
I have written a HTML file and I will be displaying the big image using 'img' tag.
Whenever the user requests for the image file, I'll make a HEAD request to the server enquiring about the content-length and last-modified-date.
The server replies back with the information based on the request and I divide the size of the file into 10 pieces and then make 10 sequential requests to fetch the image file. (Using for loop).
After chrome downloads the entire file and the next time user wants to look at the file, then I am making chrome to send If-Modified-Since query to the server.
If the server responds back with the code 304, then chrome will understand that it has to fetch the file from its cache.
I am facing the following problems:
1. I am getting about 100 bytes per response. Where should I store it and how should I make my img tag understand that it the client is still downloading the file.3
2. How should I recognize the file from the pool of files present in chrome's cache ?
3. The next time someone comes to view the same image, from where should I display the content from ?
Please Help. Can anyone also provide me with some example code or a link to some sample code.
Thanks and Regards,
Akshay Sahu
I got the way to perform this operation.
I am downloading all the bytes of a file in range and using File API of HTML 5 I am creating a file in the user HDD. Therefore, experiencing a complete resume download experience.
Thanks and Regards,
Akshay Sahu.
I am making an Uploader Which uploads Audio File
Now i want following things to be done:
Once File is Uploaded to Server an Applet should start on ServerSide
Name & other details of Uploaded content should be passed to Applet
Applet will process somethings on Audio & then PAss the Result to DB( Or Servlet )
My Question is that How to achieve such Applet-Servlet communication on Server Side.
It is Just similar to that of some Site which allows user to Upload Image & then They Process something (i.e. add Watermark, Resize extract detail etc) & then gives results. & I am trying same things ,but on Audio with the help of Applet & JSP-Servlet Which i have created.
Thanks in Advance.
I have code which creates an image in an application server and that image has been referred in mail html. After sending mail, image will be deleted in application server. When I open the mail, the image is not getting displayed in the mail.
I think my code is deleting the image before it is copied to the mail server. I have checked by deleting the image manually.
First I opened the mail (this time image gets copied to mail server) and then deleted the image in application server. When I open the mail 2nd time, image gets display (because image is in mail server I guess).
Again I ran the code, this time before opening mail first time. I deleted the image in the application server and opened the mail. Image is not displaying (because image not getting copied to mail server).
I cannot add the image as an attachment, as per my requirement.
If you can't attach the image then you have to ensure than whatever external img src is being referred to (e.g. <img src="http://foo.com/bar.jpg"/>) remains accessible as long as people could reasonably view the message.
If the image is referred to in the mail as an external http resource, then it will be visible as long as it is available on the server.
You can, indeed, attach the image to avoid this problem, but those are the only to options I know.
You say that the image is "referred to" in your mail?
The img tag will contain a link (src) to you image. Your image must be at this location when the mail is viewed.
If you're deleting the image from this location then obviously it can't be displayed.