How to catch a jpeg picture sent through a socket?

A jpeg picture is beaming back to my java code through
a socket connection, how can I get the picture? What
code shall I use. Thank you.

Thank you for the response. I tried, and my code below did now
work. It seems that the read() did not read the next byte. ANy
ideas?
FileInputStream fin = new FileInputStream("test2.jpg");
do {
imageData[i] = (byte)fin.read();
i++;
if (i%2000 == 0) {
loadStatus.setText(""+i+" "+imageData);
}while(imageData[i]>=0 && i<19998);
fin.close();
imageData[i] = -1;
//create the image
image = Toolkit.getDefaultToolkit().createImage(imageData);

Similar Messages

  • Cannot receive pictures sent through text

    I was able to receive pictures sent through text up until two days ago. The first time I couldn't receive pictures I went to the hub settings -> display and actions --> turned on "download images automatically" and it worked.
    Now I just get "You have a message awaiting retrieval. Click the button below to download it" i can click on "download now" 10 times and it won't do anything.
    Help! 

    Hi newz10 and welcome to the BlackBerry Support Community Forums!
    Because picture messages are sent via the MMS service, I would recommend contacting your wireless network provider to ensure they are not having any issues with MMS or your account in general.
    Thanks.
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • How to check a Purchase order sent through EDI?

    Dear All ,
                                                                                    I have created a P.O and in Message tab there is a green indicator which shows that this P.Ois succsfully sent through EDI , also Condition records are well created before creating this P.O , but vendor says that he does not recoeved the P.O by EDI Process.
    can you please help me out that how n where to check that this P.O is sent through EDI. I had then manuallly given the condition in Message for sending this P.O by E MAIL and it had worked , also i did chkd in trxn in SOST , this p.o sent through e mail.
    Thanx in advance.
    Rgds,
    sap11

    Dear,
    For SCOT settings check with BASIS team..
    OR
    Use SCOT, double-click the INT node.
    Use the 'Set' button in the supported address types section.
    In the 'address area' enter the pattern you want, like email@removed as per
    your example. "*" is a wildcard.
    Any email sent which does not match the pattern will fail with a "no
    route" error (seen in SOST).
    Have you checked WE02 Tcode...??
    Utsav

  • How can i locate JPEG picture in forms

    How are all of you
    i am realy in trouble .
    basically i am making software for furniture comapny
    they hay the picture of the furniture in Jpeg format
    i want to show these picture in product info form
    how can i get jped picture
    i can get gif, tiff and other format
    but the jpeg is creating the problem
    if i have the file prod.jpeg, prod.jpg then how can i
    locate it tell me plz i am waiting for this thax in
    advance

    First of all, please put vesion information in your post. An answer may be version dependend.
    Set the image format property to JFIF for jpeg images.

  • Not sure if this is a mac issue or yahoo issue.  I cannot veiw pictures sent through email from a friends ipad.

    I am having trouble viewing pictures through e-mails sent from a friends ipad to my imac.  Where picture should be is a blue ? mark.  Can anyone help. 

    Are you really using a G3, if so you're on the wrong forum. This forum is for Intel based machines. If you have updated you may want to update your profile, here is a link to tips on how to do that: Profile Update
    However regardng the photo's you aren't providing any infomraiton, such as what mail tool is being used. Please provide more details and someone may be able to help you out. If you have a newer iMac remember OS X no longer has Flash installed so you may need to go to Adobe's website and download Flash..

  • Why can't I print pictures sent through yahoo email.

    I have received pictures of family members through yahoo email but can't print them out. When I try, It it shows as symbles that are un recognizable. I would love to know how to get my pictures to print. When I locate my picture on the computer, It shows as a firefox logo and won't open up as the picture I saved.

    There have been many reports of problems with photos in texts/iMessages lately on this board and I'm wondering if this is related. Some people are unable to send and some are unable to receive. I don't know of a fix or what the problem is, but it just may be a matter of waiting until the problem is fixed on the other end. Sorry...

  • How do I fix Multiple emails sent through camera

    i have the 3G iphone. when i take a picture with my phone and then email it, the recipient receives it multiple times. i just tried sending myself a picture and i received it twice. i am not connected to the 3G network when sending. Has anyone else had this problem and if so, did you fix it and how?

    What type of email account are you using? Have you contacted your provider to find out if there are any size limitations to sending attachments? Usually this behavior is on the server side.

  • Io7: cannot forward pictures sent through messaging.

    I recently updated to the ios7, but I cannot forward a picture that was sent to me to another person via message.  The picture doesn't send.  I have to save the pic to my camera roll, open up the conversation or create a new message for the person I wish to send it to, and then add/attach the photo like that. Anyone else getting this glitch?

    So I see what you mean by the arrow pointed up--so does that mean that I don't have the ability to share the picture?  Seems silly since I can just copy it or save it to my camera roll and then send it out to whomever I want...
    I don't understand JazzyTech LOL

  • How to catch errors watched in sxmb_moni through abap program??

    Dear Gents,
    I have one scenario which is proxy -> xi -> jdbc. Scenario works fine when every thing is good, but if there are any errors in XI usually we catch the exception after calling the proxy as :
    TRY.
        CALL METHOD cl_rfq_sapin->mios_rfq_sapin
          EXPORTING
            output = output
          IMPORTING
            input  = input.
        COMMIT WORK.
      CATCH cx_ai_system_fault INTO cl_system_fault .
        gv_system_fault = 'X'.
      CATCH cx_ai_application_fault INTO cl_application_fault.
        gv_application_fault = 'X'.
    ENDTRY.
    But by this code we are able to know whether it is system error or application error. But we cant get actual error. To see the actual error we need to go to SXMB_MONI in XI. The some sample error in sxmb_moni is as follows :
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error when attempting to get processing resources: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection to URL 'jdbc:microsoft:sqlserver://10.56.5.79:1433;databaseName=SXD': SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]The requested instance is either invalid or not running.</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    So is there any way we can catch the above error in the abap program ??
    Your responeses were highly appreciated.
    Regards,
    Santhosh

    hi,
    did you try using acknowledgments?
    http://help.sap.com/saphelp_nwpi71/helpdata/en/f4/8620c6b58c422c960c53f3ed71b432/content.htm
    (code at the bottom of this page)
    Regards,
    Michal Krawczyk

  • My pictures are saying delivered when sent through iMessage but the person isn't actually getting them. How do I fix this?

    My pictures are saying delivered when sent through iMessage but the person isn't actually getting them. How do I fix this?
    My pictures send through iMessage only to certain people. And others the message is saying " delivered" but the person on the other end isn't getting any of my picture messages and sometimes regular iMessages with no pictures.

    I was sure this curse was an Android feature since I had it constantly with my Nexus phones for the last two years, but sure enough it affects iOS8 too. Turn off wireless and and your MMS will go out fine over cellular ever time (in my experience anyway). Ridiculous, right?

  • How do I save pictures sent to my iMessage?

    How do I save pictures sent to me through imessage?

    On mac.
    -doble click the picture
    -in the righ top corner press "Open in preview"
    -once it is on preview click on File(from the menu bar) and save it
    On iOS:
    -tap on the picture
    -in the left bottom corner will show a share button, click on it
    -save it

  • How do i save a picture on my,iPad from an email that was sent to me

    How do I save a picture on my iPad  from an email that was sent to me

    Dsrock wrote:
    I Opened the pic in chrome. It then gave me the option to save but It just saved it.  Did not ask me where I wanted to  save  it
    If it could save it then it went to the Camera Roll in Photos.

  • How can I see thumbnail pictures for Videos like I can see for Jpegs

    How can I see thumbnail pictures for videos like I can see for Jpegs in Elements organizer.
    Thanks
    BillJa

    You should get the mobile version of YouTube which sends Firefox a notice to open it in the YouTube App. That will have a much better playback experience than running Flash in the browser.

  • I purchased the teacher and student lightroom 5. I put in my code and uploaded my evidence to show that I am a teacher. I am guessing it was sent through to someone. How do I know when I can use the software? I don't understand what to do next.

    I purchased the teacher and student lightroom 5. I put in my code and uploaded my evidence to show that I am a teacher. I am guessing it was sent through to someone. How do I know when I can use the software? I don't understand what to do next.

    Please refer below link for more information
    Education FAQ

  • How to upload my pictures taken through my iphone 4s to icloud

    how to upload my pictures taken through my iphone 4s to icloud? how to enable automatically upload to icloud. also how to check whether the photos are uploaded? pls help.

    Hello Stephen,
    I read your post, and it sounds as though you'd like to learn more about Photo Stream and iCloud. I have linked to an article that provides information you may find helpful:
    My Photo Stream FAQ - Apple Support
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

Maybe you are looking for

  • PI 7.1 Integrated Configuration for AAE - Issue Accessing Attachment

    Hello All, PI 7.1 in its new features allows access to the Attachment using UDF's withing Graphical Mapping. Tried this feature and works good in Graphical mappings; am able to access the Attachment; and write it into a Field on my target. This works

  • [SOLVED] SSH Log check script, what am i doing wrong?

    wow linux, you never cease to amaze me cat /var/log/auth.log | grep -vP "(209\.94\.131.\65|216\.204\.172\.218)" | grep Accepted | awk '{ print $1, $2, $11 }' --- the rest is immaterial -- disclaimer: i am a horrible scripter; i'm just learning; there

  • PHP sendmail in Dreamweaver

    Hi Experts, my site created in Dreamweaver's HTML looks ok, however the PHP script cannot capture the Enquiry data to send to the my target email addr. Is there some setting I had missed out, or myscrpt is wrong. I had enclosed my PHP scripts for you

  • SOAP request

    Hi, i am trying to create a soap request withing PL/SQL to use the MAP point web service. Does any one know how i can do this from within a stored procedure?

  • HT4597 My mail has suddenly stopped working.

    I changed over to icloud a few weeks back and my mail (application) was working fine. All good. As of today, my mail (app) account now keeps rejecting my password - although if I log into icloud, my mail is fine. I've tried setting up a new account b