Help regarding file attachment

Hello All,
I am developing a form where the user will add details about a person.At the end there would be a button called "Add Photo" when the user clicks the button the add files dialogue will open. The user can browse through the photo and can add the Photo.The max size limited should be 700 KB.After the user has added the photo the photo would be shown as a thumb nail view. Also the user can change the photo later on .I am also thinking about : If the user clicks on the photo it would be displayed in its original size and one close button will appear on the bigger photo on the top right hand side corner.If the user clicks it then the photo will become thumb nail view once again. Is it possible to design in LiveCycle Designer 8.2 or am being too optimistic ?
Thanks.
Bibhu.

Hi Bibhu,
Here is an example:
https://acrobat.com/#d=jTxbDqy4gH9r2oALyXQQhQ
Check out the script in the layout_ready event of the larger image.
Good luck,
Niall

Similar Messages

  • Windows 8.1 BSOD please help Minidump file attached

    Windows 8.1 BSOD please help Minidump file and dxdiag info file link is below,
    This BSOD frequency is about once every  1 hour to 4 hours,
    Memtest passed with one pass on the one chip of 4GB
    Brand new 8.1 install
    https://drive.google.com/file/d/0B39S6eNyRvOHRnZHRG1Jd1lwT2M/view?usp=sharing
    https://docs.google.com/document/d/1XueM-ov7wjfePJh45Pp3fg1QSSzFBqMuO1tfr9GZm8k/edit?usp=sharing

    This is a crash related to some type of hardware failure. Please refer to the Wiki link below, for some troubleshooting tips.
    BugCheck Code 124 Co-Authored by ZigZag3143& JMH3143
    http://answers.microsoft.com/en-us/windows/wiki/windows_other-system/bugcheck-code-124/98c998d2-447a-40ce-ae1f-8211e355f14d
    WARNING: Whitespace at end of path element
    Symbol search path is: SRV*c:\symbols*http://msdl.microsoft.com/download/symbols
    Executable search path is:
    Windows 7 Kernel Version 9600 MP (2 procs) Free x64
    Product: WinNt, suite: TerminalServer SingleUserTS
    Built by: 9600.16422.amd64fre.winblue_gdr.131006-1505
    Machine Name:
    Kernel base = 0xfffff800`c0e7b000 PsLoadedModuleList = 0xfffff800`c113f990
    Debug session time: Tue Mar 3 23:19:34.178 2015 (UTC - 5:00)
    System Uptime: 0 days 0:00:04.947
    Loading Kernel Symbols
    Loading User Symbols
    Mini Kernel Dump does not contain unloaded driver list
    * Bugcheck Analysis *
    Use !analyze -v to get detailed debugging information.
    BugCheck 124, {0, ffffe000016f88f8, 0, 0}
    Probably caused by : hardware
    Followup: MachineOwner
    1: kd> !analyze -v
    * Bugcheck Analysis *
    WHEA_UNCORRECTABLE_ERROR (124)
    A fatal hardware error has occurred. Parameter 1 identifies the type of error
    source that reported the error. Parameter 2 holds the address of the
    WHEA_ERROR_RECORD structure that describes the error conditon.
    Arguments:
    Arg1: 0000000000000000, Machine Check Exception
    Arg2: ffffe000016f88f8, Address of the WHEA_ERROR_RECORD structure.
    Arg3: 0000000000000000, High order 32-bits of the MCi_STATUS value.
    Arg4: 0000000000000000, Low order 32-bits of the MCi_STATUS value.
    Debugging Details:
    BUGCHECK_STR: 0x124_AuthenticAMD
    CUSTOMER_CRASH_COUNT: 1
    DEFAULT_BUCKET_ID: VISTA_DRIVER_FAULT
    PROCESS_NAME: System
    CURRENT_IRQL: 0
    STACK_TEXT:
    ffffd000`2087f6c0 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : nt!WheapCreateLiveTriageDump+0x81
    STACK_COMMAND: kb
    FOLLOWUP_NAME: MachineOwner
    MODULE_NAME: hardware
    IMAGE_NAME: hardware
    DEBUG_FLR_IMAGE_TIMESTAMP: 0
    FAILURE_BUCKET_ID: X64_0x124_AuthenticAMD_PROCESSOR_BUS_PRV
    BUCKET_ID: X64_0x124_AuthenticAMD_PROCESSOR_BUS_PRV
    Followup: MachineOwner
    1: kd> !errrec ffffe000016f88f8
    ===============================================================================
    Common Platform Error Record @ ffffe000016f88f8
    Record Id : 01d0563268a81312
    Severity : Fatal (1)
    Length : 928
    Creator : Microsoft
    Notify Type : Machine Check Exception
    Timestamp : 3/4/2015 4:19:34
    Flags : 0x00000002 PreviousError
    ===============================================================================
    Section 0 : Processor Generic
    Descriptor @ ffffe000016f8978
    Section @ ffffe000016f8a50
    Offset : 344
    Length : 192
    Flags : 0x00000001 Primary
    Severity : Fatal
    Proc. Type : x86/x64
    Instr. Set : x64
    Error Type : BUS error
    Operation : Generic
    Flags : 0x00
    Level : 3
    CPU Version : 0x0000000000100f42
    Processor ID : 0x0000000000000000
    ===============================================================================
    Section 1 : x86/x64 Processor Specific
    Descriptor @ ffffe000016f89c0
    Section @ ffffe000016f8b10
    Offset : 536
    Length : 128
    Flags : 0x00000000
    Severity : Fatal
    Local APIC Id : 0x0000000000000000
    CPU Id : 42 0f 10 00 00 08 02 00 - 09 20 80 00 ff fb 8b 17
    00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
    Proc. Info 0 @ ffffe000016f8b10
    ===============================================================================
    Section 2 : x86/x64 MCA
    Descriptor @ ffffe000016f8a08
    Section @ ffffe000016f8b90
    Offset : 664
    Length : 264
    Flags : 0x00000000
    Severity : Fatal
    Error : BUSLG_OBS_ERR_*_NOTIMEOUT_ERR (Proc 0 Bank 4)
    Status : 0xba00001000020c0f

  • Regarding file attachment

    Hi,this is program for sending attachment,i use the path in coding itself...its working properly
    how i can get file path during the run time...[ex:Dialog box during runtime]
    could anyone give a suggestion...regarding this problem???
    Properties props= new Properties();
    props.put("mail.transport.protocol","smtp");
    props.put("mail.smtp.starttls.enable", "true");
    props.put("mail.smtp.auth", "true");
    props.put("mail.smtp.host","smtp.gmail.com");
    // pop3Props.setProperty("mail.pop3.port", "995");
    Authenticator auth=new MyAuthenticator("[email protected]","xxxxxxx");
    Session s=Session.getInstance(props, auth);
    MimeMessage msg=new MimeMessage(s);
    InternetAddress from=new InternetAddress("[email protected]","xxxxxxx");
    msg.setFrom(from);
    InternetAddress to =new InternetAddress("[email protected]");
    msg.addRecipient(Message.RecipientType.TO,to);
    msg.setSubject("Testing Attachment");
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText("Manikandan,Tesing Atachment");
    MimeBodyPart mbp2 = new MimeBodyPart();
    File temp= null;
    temp= new File("D:/EML.txt");
    // boolean ch=temp.createNewFile();
    FileDataSource fds = new FileDataSource("D:/EML.java");
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName(fds.getName());
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    mp.addBodyPart(mbp2);
    msg.setContent(mp);
    msg.saveChanges();
    // Set the Date: header
    msg.setSentDate(new java.util.Date());
    // Send the message
    Transport.send(msg);
    Advance thanks...

    yeah you are correct..but i dont want to upload from client server...
    just i want to upload my file from my home pc...and i want to send it to another email ID through java MAIL
    whether it is possible??if so, could you give me a clear suggestion regarding this...
    Advance thanks.........

  • Help Regarding File I/O in a procedure using Cursor

    Hi all,
    I am using a procedure, which uses a cursor, in this cursor we do some calculations and then write these calculations in a .csv file using utl_file package.
    We have 2 approaches,
    1. In every loop of cursor calculate and write then and there itself in the .csv file this means that file is open for total execution time of cursor.
    2. In every loop of cursor calculate the values and at end of loop get the accumulated value in temporary variables and write into the file once, rather than in loop.
    Which approach is better? Any visible proofs of which is better approach?
    i. Our database server is a stand alone server.
    ii. The file to be created is on same server.
    iii. Our server is single CPU, single disk server.
    iv. at a time only one user will access the file to write and that too everytime file is created with unique name having timestamp in its name.
    Considering all these points, can you guys pls help me in deciding which is better approach, how and why?
    Thanks in advance,
    Avinash Bhamare.

    Hi,
    Thanks for the link,
    But it is not what i am looking for...
    My doubt is simple and regarding whether we should be doin the I/O operations on any file in a loop or outisde loop.
    Thanks & Regards,
    Avinash.

  • Help regarding file access

    hi. i have written code in j2me for playing audio and video files using createPlayer method.But i am playing these files using uri.I have allowed for file browsing. The uri i have given in the bracket is :
    Manager.createPlayer("file://localhost/root1/abc.mpg");
    which is working fine in J2ME wtk2.2
    But it is not working in sony ericsson emulator 2.2
    I think sony emulator does not support this protocol. but has support for playing MP3. So which uri i shud give to it.
    PLS help urgently .thanx in advance.

    why don't u search on a sony ericsson forum??

  • Help regarding files after re-installing M. Lion

    Hey everyone,
    I stupidly deleted the VAR folder today when I was using DaisyDisk and didn't look into it before hand. I then had to reinstall Mountain Lion which worked succesfully adn didn't delete my files however they didn't come back in my normal user window but are still on my HD. I opened iTunes and nothing was in there, my folders on my desktop are gone etc etc. If I spotlight any of the files though they show up and also if I go into the Users folder it shows my old user but doesn't show up in the login pane for me to log into.
    Is there anyway I can get my old user back with my files? As I said everything is still on my HD but for some reason Mountain line basically made a new user for me adn I can't access my old one.
    I hope I have provided enough info for somebody to be able to help. Thank you in advance any help is appreciated.

    If you have a hard drive and it's not Filevaulted you can recover the non-overwritten files with a external boot drive and a copy of $100 Data Rescue installed on it.
    .Create a data recovery/undelete external boot drive
    The software reads the 1's and 0's of the bits themselves, not going by what anything else says.
    You have to quit using the internal drive/MacintoshHD partition particulary as the more your using it, the more it's writing over your files and less is recoverable.
    Also it might be possible to see and grab the files without Data Rescue from the external drive.
    Once you have your files, you just erase and install fresh and return those files into the new account and then #6 repair users permissions.
    ..Step by Step to fix your Mac

  • Help regarding file name

    Hi All,
    I want to write my logging information into a file with filename <month><year>.log
    How can I do this using the log4j xml configuration file?
    Thanks, Sachin

    I don't have the documentation here but you would use a DailyRollingFileAppender. If you are working with log4j then you should have the docs accessible. Check it out. If I recall correctly there is an example of that in the tutorial that comes with the product.

  • Need help regarding Java decoding of IMAP attachment (IOStream related ques

    Hi ,
    I need some help regarding the processing of an IMAP attachment , It is a basic IOStream related question I guess.
    I have some attachment to a mail , I try to fetch it using javamail and read the content and write it to a file , I was able to do it successfully when I was using stream.read( tempBuffer) function but when I started using stream.read( tempBuffer, 0, m_maxDataSize ); it is giving me following exception
    java.io.IOException: Error in encoded stream: needed at least 2 valid base64 characters, but only got 1 before padding character (=), the 10 most recent characters were: "/59PT/eXQ="
         at com.sun.mail.util.BASE64DecoderStream.decode(BASE64DecoderStream.java:259)
         at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:148)
    ***Here is the snippet of code that is running this:***
    m_contentObj = m_message.getContent();
    if(m_contentObj instanceof InputStream)
         System.out.println(" Content is type of InputStream");
         InputStream stream = (InputStream) m_contentObj;
         byte[] tempBuffer = new byte[m_maxDataSize];
         stream.skip( m_currPos );
         int bytesRead=stream.read( tempBuffer, 0, m_maxDataSize );
         System.out.println(" Read the following no of bytes from the Object::"+bytesRead);
         m_currPos+=     bytesRead;
    Please suggest what to do.
    Thanks & Regards
    Saurabh

    BUMP, just incase its been missed by a new board member

  • Help needed on properties of files attached to the transaction-crmd_order

    Hi Experts,
    My requirement is to hide the file attached to the transaction(crmd_order).
    For this, I got the information about the file from cl_crm_documents=> get_info method and the FLAG VARIABLE used for hiding th file is KW_SYSTEM_FLAGS.
    But if I try to set this flag by passing this as a import paramter(as properties) to cl_crm_documents=> change_properties method, I am getting 'SKWF_IO E003KW_SYSTEM_FLAGS' error.I am getting this error in cl_skwf_io_util=>check_properties_authority method. It says that the hidden property is a restricted one and we are not supposed to change it.
    But I am in need of changing this. Can anyone help me out in this?
    Regards
    Athikrish.

    Al_Barrs wrote:
    THR AUG th?I have some picture, graphic and text files that have in some way been saved in the Creative Player2 format on my computer. I need to associate these files with another program so that I can reoer the images and text. Can anyone tell me what program I can use to associate these Creative Player2 files to revover them, or if there is some other way to open them... Desperate for help!!! Thanks in advance. Al [email][email protected]][email protected][/url]?
    What player are you referring to? Is it Creative PlayCenter 2? Playcenter doesn't save any special extension to the files. It uses all the standard extension. eg. jpg,txt.... Not sure what you are trying to say.

  • TS1506 Regarding the attachment file

    Why the email application on the iPhone is not equipped with a file attachment feature, they say the iPhone is a smart phone, but why stupid?. And I reliazed Blackberry was superior and better for the business office application software

    We all know how you feel about the mail app now, but do you have a question or something that you need help with?
    If you have a suggestion to make to Apple regarding the iPad, do it here.
    http://www.apple.com/feedback/ipad.html

  • I have iPad 4th Generation with iOS 6.1.3  Since my iBooks was updated to version 3.1.1 I cannot open pdf file attachment in my email.  When I tap of the attachment, the iBooks icon no longer show itself.  Can someone please help?

    I have iPad 4th Generation with iOS 6.1.3  Since my iBooks was updated to version 3.1.1 I cannot open pdf file attachment in my email.  When I tap of the attachment, the iBooks icon no longer show itself.  Can someone please help?

    Thanks for all (Ocean20 & Courcoul) who replied. 
    Reset the device did not help me but it does triggers me to attempt to resend the PDF file attachment on email--and it works the 2nd time.  My problem is now solved.
    The Adobe Reader is very helpful--it allows me to scroll through the document easily, unlike iBooks, where I cannot scroll straight up or down.

  • File attachment not available on CALL TRANSACTION

    Hello guys,
    I am using Generic Object System (GOS) for file attachment in a custom transaction. If I access the transaction directly, it is working fine. But if I use CALL TRANSACTION 'ZTRAN', the file attachment in the application toolbar is not appearing. I debugged in both way, I don't find any difference. But finally through call transaction, GOS is not appearing. please throw some lights on this.Below is my code.
    In transaction:
    DATA: gcl_manager  TYPE REF TO cl_gos_manager.
      IF NOT zmm_spa_header-rmsno IS INITIAL.
    *   Set object Key
        gv_object-objtype = gc_spah.
        gv_object-objkey  = zmm_spa_header-rmsno.
    *   GOS toolbar
        CREATE OBJECT gcl_manager
          EXPORTING
            is_object    = gv_object
            ip_no_commit = 'R'
            ip_mode      = 'E'
          EXCEPTIONS
            OTHERS       = 1.
      ENDIF.
    In report:
    CALL TRANSACTION 'ZMMD_SPA'.

    Hi,
    1,  make SY-BINPT = 'X'. then call transaction. Hope it will display.
    if not try BDC as mentioned below record only first screen.
    data: ctu_params type ctu_params.
    ctu_params-UPDMODE = 'A' . " Asyconrous mode.
    ctu_params-DISMODE = 'A' " all screens
    ctu_params-NOBINPT = 'X'.
    CALL TRANSACTION 'ZMMD_SPA' using bdcdata options ctu_params.
    Hope it helps.
    Regards,
    shanmugavel chandrasekaran

  • Regarding email attachement while running a background job

    Dear Experts,
    When i am running a background job for any ALV report (standard or custom report) <b>automatically</b> the output is going to an e-mail address as a HTML file attachment. I want to change it to EXCEL file attachment.
    Please help me on this issue..
    Kind Regards,
    Tom

    Hi Prasanna,
    Thank you for your reply.  I am not using any code for sending the mail to the recipient E-mail address, system is taking care automatically.
    Few settings were done in SCOT transaction from basis, but no where they mentioned file type is .HTM.
    From my end i have done the following steps.
    1. go to SM36, give a job name.
    2. press on step push button , give the ABAP program name ( any ALV program, i mean standard report or Z report), give the variant and save.
    3. Come back . press on Spool list recipient push button give the e-mail address, press copy button on the  pop up window.
    4. press on start condition button , press on Immediate option and save.
    5. again press on Save button in the screen.
    now here job will be scheduled immediately, go to SM37 check your job status, if it is completed, automatically system is sending an e-mail with the ".HTM" attachment file output to the recipient e-mail address.
    i am not doing any coding part here.
    my concern is system should send the e-mail with ".XLS" file output attachment.
    please advise on this.
    Regards,
    Tom.

  • Email with Text File Attachement as Source

    Hi All,
           One of my interfaces needs to listen to incoming mails with an text file attachements.I wish to know how we can convert the text file contents into XML to further process it on the reciever side.

    Hi,
    To perform content conversion of a flat file, check these blogs,
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    Also, to understand file content conversion better, you can check this link on SAP Help,
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Regards,
    Bhavesh

  • Http post from an application with file attachment

    Hi ! I didn't know where else to post this message...
    I'm trying to make a HTTP POST from an application and upload a file with it. I have no problems with the posting, just that I haven't got any ideas how to get the file uploaded as well. I've been reading loads of examples regarding the topic, and searching older posts the forum here, without any help.
    Here's the method i'm using:
                   // open connections
                  URL url = new URL ("TheURL");
                   URLConnection urlConn = url.openConnection();
                              // We do input & output, without caching
                   urlConn.setDoInput (true);
                   urlConn.setDoOutput (true);
                   urlConn.setUseCaches (false);
                              // multipart/form-data because we want to upload a file
                     urlConn.setRequestProperty ("Content-Type", "multipart/form-data");
                  // Open output stream
                     DataOutputStream printout = new DataOutputStream (urlConn.getOutputStream ());
                  // Set the actual content
                     String content = "upfile=" + System.getProperty("user.dir") + "\\file.ext&";
                       content += "other_key-value_pairs";
                  // write the data to stream, and flush it.
                     printout.writeBytes (URLEncoder.encode(content));
                   printout.flush ();
                   printout.close ();
                   // Get the response.
                     DataInputStream input = new DataInputStream (urlConn.getInputStream());
                   FileOutputStream fos=new FileOutputStream("postto.txt");
                   String str;
                     BufferedReader bufr = new BufferedReader(new InputStreamReader(input));
                  // Write response to outputfile
                     while (null != ((str = bufr.readLine()))) {
                         if (str.length() >0) {
                         fos.write(str.getBytes());
                         fos.write(new String("\n").getBytes());
                   input.close ();Now, the response here I get from the url i'm posting to is "Failure, no data-file". I've tried many diff methods of writing the file to the stream, but always get the same result.
    I need to file attached like it would be when using a HTML form's <input type="file">.
    Please help ! This is getting really urgent !

    String content = "upfile=" + System.getProperty("user.dir") + "\\file.ext&";
    content += "other_key-value_pairs";
    printout.writeBytes (URLEncoder.encode(content));
    printout.flush ();
    printout.close ();Actually, what this does is create a request like:
    GET /path/to/file/script.language?upfile=/home/user/file.ext&other=params HTTP/1.1
    Content-Type: multipart/form-data
    -- And other HTTP params --
    The file is not actually appended to the request.
    I really don't know how Java handles the file upload, but you could do it by hand, like so:
    public static void doFileUpload(String url, String filename, Hashtable params) throws IOException {
        // Construct the request
        String boundary = "----------------------mUlTiPaRtBoUnDaRy";
        String request_head = "POST " + url + " HTTP/1.0\r\n" +
                                         "Content-type: multipart/form-data; boundary=" + boundary + "\r\n";
        String request_body = boundary + "\r\n\r\nContent-disposition: form-data; name=\"upload\"" +
                                         "\r\n\r\n";
        BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));
        int b = -1;
        while((b = in.read()) != -1) {
             request_body += (char)b;
        in.close();
        Enumeration keys = params.keys();
        while(keys.hasMoreElements()) {
            String key = keys.nextElement();
            requst_body += "\r\n" + boundary + "\r\n\r\nContent-type: form-data; name=\"key\"\r\n" +
                                    (String)params.get(key);
        request_body += "\r\n" + boundary + "--\r\n";
        int length = request_head.length() + request_body.length() + "Content-length: \r\n";
        String req_length = "Content-length: " + (length + new String("" + length).length()) + "\r\n";
        Socket socket = new Socket(url,80);
        PrintStream stream = socket.getOutputStream();
        stream.print(request_head + req_length + req_body);
        // And now an option to read the response, I will omit that...   
    }Note: I have not tested this code, just wrote it up out of memory. If it does not work, it will propably need some small fixes.
    Tuomas Rinta

Maybe you are looking for

  • How do I stop iTunes from switching the display to the next song playing?

    Using iTunes 10.5.0.142 and importing my music.  When playing music iTunes constantly switches to view the next Album/Song when it starts playing the next one in the list.  I am trying to get the library organized and edit song and album info when it

  • Lumia 620 Music problem with wired headset

    Sometimes when I start listen music with my Lumia 620 using WH-208 headset (great price/quality ratio),music is only heard from left earpiece. Then I switch power off/on and it plays normally. This has happeded before and after Amber update.

  • Sender and receiver partner number,

    Hi All, In the control section of an idoc, there are two fields - sender and receiver partner number. If my application sends an inbound idoc to Sap R/3, the two fields are not necessary? I have noticed the logical system has been assigned to the cli

  • Open in does not appear

    I just downloaded the reader app and tried to put an email in the reader. When I tapped on the appropriate icon the open in did not appear on the list in the window that opened. What do I do?

  • How do I attach file into reply existing email?

    How do I attach file into reply existing email?