Can you get the original bytes/format from a BufferedImage

Applications allows users to select file and then the contents of the files are embedded into an mp3 file, but also allow images to be dragged or copy and pasted and in vertainn cases I only recieve the image as an Image DataFlavor (new DataFlavor("image/x-java-image;class=java.awt.Image");), so I have the bufferedImage but I need to convert into a stream of bytes and I don't have the bytes or even the the orginal format of the image, or are they hidden in the BufferedImage somewhere. At the moment I'm always writing the Bufferedimage as a jpeg whereas Id prefer to write the original format if supported, not least because sometimes ImageIO actually renders the file incorrectly (#4881314 , #6444933).
thanks Paul

Not possible. No.

Similar Messages

  • I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date is created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    I have made a burn folder with photos exported from I-photo.  It now shows in information, that the date  created and modified is different from the original digitized date.  How can I get the original date to show in the info from Finder?

    The Finder reports File information. The date and time of the photo are in the Photo's Exif metadata. The Finder has no awareness of this. All photos apps on any system do.
    Regards
    TD

  • How do you set the original outbound message from MSG_WAIT_ACK to MSG_COMPLETE ?

    We are using B2B & OSB to send out messages via eBMS protocol
    So basically this are the two use cases
    1) EBusiness Suite => B2B => OSB=> Customer for the outbound Shipment Notices
    2) EBusiness Suite <= B2B <= OSB<= Customer for the Inbound acknowledgement
    We are able to use standard B2B functionality to send out the messages using eBMS with https and client certificates
    On the way back from the customer, we are using OSB that gets the raw data and the body gets sent to B2B
    On the outgoing part a message gets created in B2B and is at MSG_WAIT_ACK
    When the acknowledgement comes in, it comes as a seperate messgae in B2B and is at MSG_COMPLETE
    How do you set the original outbound message from MSG_WAIT_ACK to MSG_COMPLETE?
    We use JMS and have played around with jca.jms.JMSProperty.INREPLYTO_MSG_ID but that is not propagating to REFER_TO_MESSAGE_ID in B2B_BUSINESS_MESSAGE table
    I tried using jca.jms.JMSProperty.CONVERSATION_ID as well but no luck
    Any response is highly appreciated!

    Are you asking about your own JavaMail code or about somebody else's web-based mail agent?
    If it's the latter (which is what it sounds like) then you find the checkbox in the preferences configuration, or whatever they call it, which says "Include original message in reply", or something like that. If such a thing exists, that is. If you're thinking that the e-mail message controls how their code formats replies to it, that's not how it works.
    Even Outlook lets you configure how replies are formatted, the only difference is that the Outlook default is to include the original message and your web-based agent's default is to not include it.

  • I am using iphone 5s, glass got broked, where can i get the original panel and what would be price

    i am using iphone 5s, glass got broked, where can i get the original panel and what would be price

    If you are from India ,here is how you get Out of Warranty service in India
    Out-of-Warranty Service
    Please contact an iPhone Authorized Service Provider for out-of-warranty service options.

  • How do you get the web application path from the servlet?

    I have created a web application which is installed in
    /webapps/myApplication
    /webapps/myApplication/data/users.xml
    /webapps/myApplication/WEB-INF/classes/myServlet
    How can you get the path to the "users.xml" file from the "myServlet" file?
    The code below doen's seem to return the xml file. anybody knows why?
    public class myServlet extends HttpServlet {
    public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException
    File myXmlFile = new File("/data/users.xml");

    Try this..
    String FileName = getServletContext().getRealPath("\\data\\users.xml");
    File myXmlFile = new File(FileName);
    hope this helps..

  • I have about 800 more songs on my nano than itunes, due to a crash. How can I get the songs onto itunes from the ipod, or at least get the new music ive gotten since the crash onto my ipod without deleting all the other songs when it syncs?

    i have about 800 more songs on my nano than itunes, due to a crash. How can I get the songs onto itunes from the ipod, or at least get the new music ive gotten since the crash onto my ipod without deleting all the other songs when it syncs?

    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.  Use your backup copy to put everything back.
    If you have failed to bakup, then you can transfer itunes purchases from an ipod: File>Transfer Purchases

  • I wiped my ipod classic and then my computer crashed, so i no longer have the songs i purchsed from itunes on my ipod or computer! I have a new computer now with itunes installed, can I get the songs purchased previously from itunes somehow?

    I wiped my ipod classic and then my computer crashed, so i no longer have the songs i purchsed from itunes on my ipod or computer! I have a new computer now with itunes installed, can I get the songs purchased previously from itunes somehow?

    Yes, you can!(:
    STEP 1: Open iTunes
    STEP 2: Navigate to the "iTunes Store". It can be found under the "STORE" tab.
    STEP 3: On the right side of the store there should be a "Quick Links" Section. Click on the "Purchased" link.
    STEP 4: Navigate to the "Music" tab and click on "All Songs". Then at the bottom of the screen there will be a button that says "Download All". Click the button and your songs will be begin downloading!
    NOTE: This will only work with songs that you bought from the iTunes store, if you imported them from a CD, you will have to do it again.
    NOTE: You can also do this with Apps, Movies, TV Shows, and Books.
    NOTE: You may have to sign in with your Apple ID to verify the download.
    Hope this helped! Enjoy your music!(:

  • Can you get the file name of the current executing TSQL script?

    Can you get the file name of the current executing TSQL script? I wrote entries to a generic log file and would like to include the script name.

    Okay, So What you can do is
    1. Read get the version from your  database and redirect it to a text file(SQLCMD outout can be directed to text file using -o option or windows redirection operator >)
    2. Now you can read this value from the text file either inside a batch file or a powershell script and decide what operations you can do. 
    Satheesh
    My Blog |
    How to ask questions in technical forum

  • I CAN'T GET THE "WHATS NEW" PAGE FROM COMMING UP FIRST. I CHANGED THE HOME PAGE IN THE PREFERENCES, IT DIDN'T HELP...

    I CAN'T GET THE "WHATS NEW" PAGE FROM COMING UP FIRST. I CHANGED THE HOME PAGE IN THE "GENERAL SETTING" IN PREFERNCES, I RESTORED THE "DEFAULT HOME PAGE" NOTHING HELPS.
    IF I CLICK IN ANY WEB LINK THE "WHATS NEW " PAGE KEEPS COMING UP FIRST. I THEN HAVE TO "X" IT OUT AND RE-CLICK ON THE WEB LINK FOR IT TO RELOAD. I HAVE TRIED EVERYTHING. WHAT THE HELL AM I DOING WRONG?

    See this article for some suggestions: [[Firefox has just updated tab shows each time you start Firefox]]
    See also http://kb.mozillazine.org/Preferences_not_saved and [[Preferences are not saved]]
    * [[How to set the home page]] - Firefox supports multiple home pages separated by '|' symbols

  • Can you get the full version of minecraft on an ipad mini?

    Can you get the full version of minecraft on your Ipad mini?

    No.
    You can only download Apps from the App Store.

  • How can we get the selected line number from JTextArea ?

    how can we get the selected line number from JTextArea ? and want to insert line/string given line number into JTextArea??? is it possible ?

    Praitheesh wrote:
    how can we get the selected line number from JTextArea ?
    textArea.getLineOfOffset(textArea.getCaretPosition());
    and want to insert line/string given line number into JTextArea??? is it possible ?
    int lineToInsertAt = 5; // Whatever you want.
    int offs = textArea.getLineStartOffset(lineToInsertAt);
    textArea.insert("Text to insert", offs);

  • Can not get the high resolution photo from iCloud on the iPhone5s, unless re-share the photo to the iCloud.

    after restoring the iPhone, the iPhone can not get the high resolution photo from album of iCloud, unless re-share all the photo to the iCloud.

    If you plug up both to computer, open itunes, click "back up to computer" on both (not necessary for the one that's being transferred to) then on the one that's sending data click "back up" in the iTunes menu. It will then back up (if not already done in sync). Now plug up the second one (being transferred to) and on the iTunes menu, click "restore from backup" then choose the device you just backed up, and click "ok" or what it says.
    Hope this helped
    P.S. I am referencing to using iTunes <11. Some features I show here might not be available in iTunes 10

  • Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    Since installing the last iPhoto update sharing a photo via e-mail opens a google e-mail format instead of an Apple Mail format.  How can I get the Apple Mail format to come up when I click on share?

    iPhoto preferences - set the email client to Mail
    LN

  • How can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    We need the Request Restart ability when scheduling a single reoccurring job in Redwood. Most of our jobs are scheduled in CHAINs which offers the Final Status Handler on Step level, and the schedule is "paused" when a job in the CHAIN has failed ( the next instance does not populate until the OP MSG has been Replied to) , and once the OPERATOR message is replied to, the CHAIN can resume running again ( desired ) . But we need this same ability when scheduling a single job not in a CHAIN. In our testing, we set up a job with Request Restart chosen on the Error , Killed and Unknown selections on the Restart Behavior Tab. But we found when a job is scheduled say once a day at 8AM, and when it fails, an OPERATOR msg appears allowing a Restart choice ( desired), but the next day's schedule also populates ( undesired) and we do NOT want the schedule to continue on yet because we need a chance to fix the error before the next insance runs for business reasons. So how can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    Hello Fran,
    You can wrap the job chain in a master job chain in the first step and set the final status handler there.
    You can also set the Restart Behavior to 'Stop Submit Frame', in that case you will have to resubmit the job once you are finished troubleshooting.
    Regards Gerben

  • HT201269 Can you get your previously purchased ringtones from itunes back when you switch to a new device?

    Can you get your previously purchased ringtones from itunes back when you switch to a new device?

    Try here:
    iTunes: Error 13019 during sync

Maybe you are looking for