How do I upload data alongside my image upload?

How do I upload additional variables alongside an image upload? My code doesn't seem to be working.
                    temp.upload(new URLRequest(serverURL));
                    var variables:URLVariables = new URLVariables();
                              variables.my_name = "Jackson" ;
                              variables.my_state = "Missisippi" ;
                    var request:URLRequest = new URLRequest(serverURL);
                    request.method = URLRequestMethod.POST;
                    // Put parameters into request.data
                    request.data = variables;
                    // Perform the upload
                    temp.upload(request);
Thanks!

hi, i dont know if this can help you, i made the script to upload image and data. hiere is the files check if this help you.
if no please explain more your question.
FIles atached: http://www.faraday.mx/Adobe/uploadPicAndData.rar
regards.

Similar Messages

  • How to convert base64 data to an image

    Hello, my enterprise application is receiving base64 enocoded image data in an xml file. Now I need to convert it to a native image formats like jpeg/jpg/tiff/pdf etc. Does anybody know if there are any Java apis (both free/paid) which let you do this. Actually I would not have any idea of what type of image it was when it was initially encoded to base64 format. I am looking for an API/technique that can convert base64 data to any image depending on what I want at runtime.
    Thanks a lot in advance.
    R

    Hi there,
    I've had to deal with exactly the same problem myself. The images I had to deal with were all TIFF files, and that was okay, I'd say one of your first steps would be to find out what format these images are in.
    I used a SAX Content Handler to pull the base 64 image data out of the XML into a String, and then converted the Base 64 String into a byte array. From there I could either simply write the byte array to a file, or if I wanted use ImageIO to create an Image object, work with the metadata or even save it in a different format, though I never actually did that.
    Anyway, here is some code I whipped up to convert the String to a byte array, then write the byte array to disk. Let us know how you get along!
          * Writes a byte array to a file.
          * @param result          String containing base64 image data     
          * @param fileName     File name to write the converted image to
         public static void writeTiff(byte[] result, String fileName) throws IOException {          
              FileOutputStream out = new FileOutputStream(fileName, true);
              out.write(result);
              out.close();
          * Converts a String of base 64 image data, captured from XML, into a byte array.
          * @param      image     A Base 64 String          
          * @return      byte[]          
         public static byte[] convertTiff(String image) throws IOException {          
              byte[] result = new sun.misc.BASE64Decoder().decodeBuffer(image);
              return result;
         }

  • How to resolve insufficient data for an image

    Hi
    I am using oracle 9i database
    I have written a package using 'utl_smtp' package to send email and attachment.
    When I am attaching a oracle report (in .pdf format;This report has an Image inserted into it) and sent it to an email address, the attachment is sent properly. But when I am opening the attached file it is giving me
    insufficient data for an image instead of showing the picture. After the picture rest all text part of the report is appearing properly.
    The image is 24-bit bmp file.
    To test I have created another .bmp file with smaller size. And in that case it is working fine.
    Could you please resolve the problem.
    Regards

    Hi
    Thanks
    Yes I can open the .bmp file.
    My .pdf file is an oracle report
    I am generating the oracle report report as a .pdf file.
    When I open this .pdf file, it's perfectly fine, no problem with the file.
    But when I send this file as an attachment using utl_smtp, and after receiving the email I open the attachement, I face insufficient data for an image error. And the image is not shown in the .pdf
    regards

  • How can you upload an image to MYSQL using php?

    Ok this is a joint thread with one of my other ones because no one else  was posting on it, so I did not get what I needed, so, How can you  upload an image to mysql so when some one logs on to my site, they see  or can upload there own avatar, now there are loads of problems with  this, 1) many people don't know how, 2) It's not every day you try to  encode a image into mysql, 3) Letting people upload images into mysql  can cause traffic problem with people trying to log in. So that's it.

    Uploading images into MySQL is a bad idea, for more reasons than you mention. You should store the images in a directory on the server instead. But if you want to learn the hard way, here is the method:
    The mysql data type must be blob.
    The form enctype must be multipart, like this: enctype="multipart/form-data"
    The form input field myst be type file, like this: <input type="file" name="upload"/>
    Here is example code that prepares the variable $photodata to be inserted into the database.
      $uploadfile = $_FILES['upload']['tmp_name'];
      $photoname = $_FILES['upload']['name'];
      $uploadtype = $_FILES['upload']['type'];
      if ($uploadfile != "") {
    $tempfile = fopen($uploadfile, 'rb');
    $filesize=filesize($uploadfile);
    $width=getimagesize($uploadfile);
    $widthx=$width[0];
    $heightx=$width[1];
    if (($widthx > 102) or (heightx > 135)){
    $image_too_big = " but the image size was too large and was not submitted.";
    } else {
    $photodata = fread($tempfile, filesize($uploadfile));
    $photodata = addslashes($photodata);

  • To display the Attendee name in LSO_PV15, how can a upload data in system

    Hi Gurus,
    I have a requirement, that is... in the LSO_PV15... generally data will be displayed of the learning solutions attendee data. but my client requirement is... he will give the text file with employee name, emplyee number, pass... the data to be uploaded and it will be displayed in LSO_PV15... how can I upload the data... and which tables will be updated while uploading the data... is there any BAPI or function module to upload the data... kindly help me... actually LSO_PV15 is a report program... but the data to be loaded in to the system and it will be displayed in the LSO_PV15... your suggestion is great help to me... thanks in advance...

    hi,
    is there any generic fix for this. if we want to display then we need to change the each page CO . is it a possible solution. or any generic solution. Please provide
    Thanks
    Smarak

  • How can i upload a image file to server by using jsp or servlet.

    Hi,
    I m gurumoorthy. how can i upload a image file to server by using jsp or servlet without using third party API. pls anyone send me atleast outline of the source code.
    Pls send me anyone.
    Regards,
    Gurumoorthy.

    I'm not an applet programmer so I can't give you much advice there.
    If you want to stream the file from the server before it's entirely uploaded, then I don't believe you can treat it like a normal file. If you're just wanting to throw it up there and then listen to it, then you can treat it like a normal file.
    But again, I'm not entirely certain. You might be able to stream the start of the file from the server while you're still uploading the end of it, but it probably depends on what method you're using to do the transfer.

  • PDF flyer with attached Data Form  how do i upload pdf and submit data simultaneously?

    Scenerio user downloads pdf flyer template with attached data form. user customizes flyer and fills out form. user clicks on custom "Submit" button to send form data to php form.
    On submit, how can i upload the pdf flyer to our server AND still send the form data to php form?
    maybe the local file(pdf) address is sent to the php form along with the form data, then i can use php to upload the file automatically.
    any sugguestion???

    Hi Mr AP,
    are you trying to do this in Reader or in Acrobat? If you're using Reader it won't work unless the form is reader-extended by either LC Reader Extensions on the server or by running it through Acrobat manually and extend the capabilities of the form for reader users (careful - the license of the latter is limited to 500 form recipients).
    If you did try it in Reader with a non-extended form the behaviour you'd see is that it just won't work, so that might be your issue.
    Cheers
    Kai

  • How to determine the data content of the uploaded PDF from local

    Hi,
    I have a requirement wherein I will create a new program to upload PDF(contains contract information) from my local directory. Then base on the data in the PDF, I need to perform some contract validtion with SAP. The problem is, I do not know how to extract the data in the PDF. How to do so?
    Thanks for your inputs.
    Regards,
    Marc

    Hello Marc,
    As we know in conventional ABAP when PDF file is read, SAP converts into binary format which is not directly readable. There are various applications which converts PDF to Text files, using these tools PDF file can be converted, uploaded and read the data.
    SAP Portal technology gives reading PDF files option.
    http://help.sap.com/saphelp_nwce711/helpdata/en/dc/f1783fe3263042e10000000a114084/content.htm
    Pls  have a look at page 11
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9913a954-0d01-0010-8391-8a3076440b6e
    Regards,
    Nishikant.

  • How can I upload an image to this forum

    How can I upload an image to illustrate a problem? I have a tiff image of 41K, and I click on the camera icon to try to upload it, but an error message says
    "[The content type of this image is not allowed.]". What do I have to do?
    Thanks

    You need to use a jpeg image or a PNG image. Use GraphicConverter 7.3 to change the format.

  • How we can upload multiple images in particular id in sharepoint

    WE have some legacy systems in that we have multiple images for perticuler patient. How can i migrate that all related images into perticuler patient while uploading to share point site...can you help for the same 
    another issue is which task(component) is used for migrate the images into CRM destination---I mean which transformation is used for implementing ETL packages in ssis 

    Hi,
    You have posted your question on the MS Project forum which is dedicated to the Microsoft scheduling and planning software. Eventhough most of us have basic/advanced knowledge on SharePoint, I suggest that you posted your question on the Sharepoint forum
    http://social.technet.microsoft.com/Forums/en-US/home
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • How we can upload the data through BDC for transaction J1ID

    Hi guru
    How w can upload the data for Transaction J1ID.In this we want to upload the data for Customer Excise details. I want to upload the data on behalf of Customer (KUNNR) becasue customer is a primary KEY. Table name: J_1IMOCUST
    Fields. 11 Fields.plz provide some code logic.
    KUNNR     J_1IEXCD     J_1IEXRN     J_1IEXRG     J_1IEXDI     J_1IEXCO     J_1ICSTNO     J_1ILSTNO     J_1IPANNO     J_1IEXCICU     J_1ISERN

    Hi,
    I dont see any difficulties in doing BDC upload for J1ID, You have to record by giving the New Entries button and then enter all the details of customers using table control technique.
    SEARCH SCN for Table Control in BDC
    Regards
    Karthik D

  • How to batch upload some data into SAP system?

    Hi All:
    I'm a SAP key user in our company, I want to know how to batch upload master data into SAP system? What t-code we can use for batch input?
    Thanks in advance!

    Hi,
    I think at least there are four methods for batch input which you can use in SAP system:
    Standard mass change t-code: for example, MM17 for mass change of material master data, you can find the mass change t-code under the relevant function module;
    T-code SCAT, you can use to record and generate the simple batch input template, it's easy to use for key user;
    T-code LSMW, it's another transaction to generate batch input template, it's often used at the beginning of SAP rollout;
    ABAP program, of course, ABAP is a universal tool for everything, you can use ABAP to generate a batch input program to upload data into SAP system as well.
    So you had better contact your SAP support department, help you to upload data!
    Good luck
    Tao

  • How can we upload the Time data into SAP system

    Dear all,
    ingeneral which method we can use to read the Time data and how can we upload that data into SAP system. Please any one can answer this asap.

    In the recent project that I have done.. the time data is uploaded from the external time recording machine.. in the form a file...
    The other way is through CATS... which in turn will populate the time entries as per hte work schedules... and will explicitly have to populate the deviations to the work scheudle by going through transactions..
    Please reward the points if it is helpful...
    Regards,
    Suvan,
    Yash Technologies Pvt Ltd, Hyderabad.
    Message was edited by:
            Suvan

  • How can we upload longtext data in BDC?

    Hi All,
    i want to upload data for a transaction QA11.
    In that i have to upload data for fields
    QALS-PRUEFLOS',
    RQEVA-VCODEGRP,
    RQEVA-VCODE'
    and one text field (255) is there in that transction.
    How can i update that text(255) in to database from internal table.
    ie.how can i upload longtext in BDC.?
    Regards,
    Ravi.

    Hi,
    The uploading of the long text into the transaction can be done in the same way as you do it for other fields. If the flat file from which you upload contains the long text refer that field in your recording and the field would get uploaded into the transaction.
    For updating in the database table use the insert statement in case of new records to be updated or the modify statement in case of altering the already existing records in the DB table.
    Reward points if helpful.
    Thanks,
    Archana
    Edited by: Archana Sirsi on Apr 10, 2008 9:30 AM

  • How can I upload date data, like 2015/03/23 to Hyperion planning 11.1.2.3 ?

    Hi all,
    how can I upload date data, like 2015/03/23 to Hyperion planning 11.1.2.3 ?
    Not necessary do it by FDM, please let me know if there is a way to do it.
    Thanks a lot in advance.

    FDM is not the best tool for doing something like this as it loads direct to Essbase and doesn't have the same support for loading text and date values that you get when loading this type of data via the Planning layer. Take a look at using the Outline Load Utility, the sage John Goodwin has a detailed description on his blog - More to life than this...: Planning 11.1.2.2.300 Outline Load Utility Enhancements Part 2 - on how to do this from a relational source although the bulk of it holds true if you were loading from a flat file.

Maybe you are looking for

  • OIM 11g R2  - Issue while removing child data

    Hi, We are facing the following issue when we try to submit a "Modify Account" request by removing all the child form data.The issue is there only if the child form contains attributes which are of type integer ,date etc (non-string). Steps followed

  • Is it OK to have two SBS Servers with same name, on different subnets but connected over a VPN?

    Hi Everyone,                    I'm just about to connect up two SBS 2011 Servers with the same server name but on different subnets & domains over a VPN. So for example both servers will have the name Server01, one would have an ip address of 192.16

  • Wireless help please!! I have tried ALL the sugges...

    Hi There Please help me! We have had infinity for a few months now, over the last few weeks we have had countless problems connecting. The wireless connections are constantly dropping in and out, all day long, on the laptops and phones. I have tried

  • Macbook Pro detects the battery but don't use it

    So my battery is really low and I already ordered the new one but still... Macbook detects my battery. Coconut shows its health charge level and other stats: However it won't charge it neither it will use it as its power source. My Macbok will not ev

  • Function Module / Class for Transport Management

    Hello, I have a requirement where I need to fetch the list of transports which are released. In addition to that, I also need to fetch list of object under each transport (which have failed to be migrated in the target system) and find all the releva