Uploading file (pdf,jpg,,text,doc....etc ) in any format

hi friends ,
need help in uploading the file on the server and storing the path of the file while inserting to the database .
I have the code with me but that is limited to the one content type i.e text or doc format .
I am noit getting as to how should i use this same code for uploading any type of file type.
"ie. can be pdf ,doc,text.....etc
how should i do it
i also have to use the update the same ,

java@mani wrote:
I have the code with me but that is limited to the one content type i.e text or doc format .Weird coding then. Uploading of files is by default not restricted by file formats. The server side really doesn't care about the binary contents of the multipart stream.
Review the code and try to understand the concepts. You might find the following article useful: http://balusc.blogspot.com/2007/11/multipartfilter.html

Similar Messages

  • How i can add external files (pdf, jpg) to link of flash catalyst????

    Hola, necesito agregar un archivo PDF o JPG a un boton en Flash Catalyst... como lo hago???
    Hello, i need to add a file (PDF, JPG) to a button in flash catalyst... how can i do that???

    Hello Saransoft84:
    I saw that, my script not same as your script, but I do not know how I can write it as you, from where in action script I can found your command, as: but.onPress = function():Void
    You attached same my file, I am very sorry as I trouble you in simple problem, but I did not found solution yet.
    Regards

  • Spotlight stopped finding files, even after "index". They're visible files, not system files (like.jpg, .xls, .doc). This happened for no apperent reason.

    Spotlight stopped finding files, even after "index". They're visible files, not system files (like.jpg, .xls, .doc). This happened for no apparent reason.
    Worked well with Yosemite the first week, but now it doesn't.

    Any advice would be helpful. Thanks

  • Opening a PDF/Excel/Word Doc/etc file in an iView

    Hello everyone,
    I'd like to open an Excel or PDF or etc file in an iView.
    Ideally i'd just create a URL iview (by the way i'm on EP5 SP6) and then just use that to link to a static file.
    However, the issue i'm having is that we need to open the
    file that was last created within a directory. So i created the code to detect the most recent file. Now i have the RID of the most recent file but i dont know how to display it. response.write() only takes a String. How do i get the file represented by the RID i have and open it in the iView?
    Thanks alot,
    Ale

    Hi,
    Here's the code i'm using that prints 208 to the screen:
    IResource ir = ResourceFactory.getInstance().getResource(RID.getRID(theFile), rContext);
                                  String ext = theFile.substring(theFile.length() - 4);
                                  String contentType = "";
                                  if(ext == ".xls")
                                       contentType = "application/vnd.ms-excel";
                                  else if(ext == ".doc")
                                       contentType = "application/vnd.ms-word";
                                  else if(ext == ".pdf")
                                       contentType = "application/pdf";
                                  HttpServletResponse response = request.getServletResponse(true);
                                  response.setContentType(contentType);
                                  response.setHeader("Content-Disposition", "inline; filename=DownloadReport" + ext);
                                  java.io.InputStream is = ir.getContent().getInputStream();
                                  java.io.PrintWriter out = response.getWriter();
                                  out.println(theFile);
                                  out.println(new InputStreamReader(is).read());
                                  out.close();
    Any idea what is not working correctly?
    Thanks a lot,
    Alessandro

  • Developer Report 10g - How to generate directly a file ( pdf, html, text etc. )

    hi all gurus,
    this is my first ever post, I am new in the development area and facing a problem.
    I am using Developer 10g, calling report through a Form Module and want to Directly save in file name specified but failed. My code to call report mentioned below for your ready reference. NO Parameter using in Report Module.
    This showing report on Screen instead of giving output file, user have to use Save As command and also there is no file name which I sent to Report Module.
    ---------------------------------- START of CODE -----------------------------
    Declare
      rep_obj         REPORT_OBJECT;   
      v_rep           VARCHAR2(100); 
      rep_status      VARCHAR2(20); 
      v_rep_server    app_server_objects_detail.OBJECT_VALUE%type;
      v_p_action      app_server_objects_detail.OBJECT_VALUE%type;
      v_rep_getjobid  app_server_objects_detail.OBJECT_VALUE%type;
      v_rep_killjobid app_server_objects_detail.OBJECT_VALUE%type;
      v_rep_obj_path  app_server_objects_detail.OBJECT_VALUE%type; 
    BEGIN 
      --------------------------------- setting app server object properties ---------------------------------
      for rec in ( select object_code,object_value
                     from   itmis.app_server_objects_detail
      loop 
         if rec.object_code=1 then
            v_rep_server:=rec.OBJECT_VALUE;
         end if;
         if rec.object_code=11 then
            v_rep_obj_path:=rec.OBJECT_VALUE;
         end if;
         if rec.object_code=19 then
            v_rep_getjobid:=rec.OBJECT_VALUE;
         end if;
         if rec.object_code=20 then
            v_rep_killjobid:=rec.OBJECT_VALUE;
         end if;
         if rec.object_code=21 then
            v_p_action:=rec.OBJECT_VALUE;
         end if;
      end loop;    
      rep_obj := find_report_object('SHORT');  --- report name
      SET_REPORT_OBJECT_PROPERTY(rep_obj,REPORT_EXECUTION_MODE,BATCH); 
      SET_REPORT_OBJECT_PROPERTY(rep_obj,REPORT_COMM_MODE,SYNCHRONOUS);
      SET_REPORT_OBJECT_PROPERTY(rep_obj,REPORT_DESTYPE,FILE);
      SET_REPORT_OBJECT_PROPERTY(rep_obj,REPORT_DESFORMAT,:TEXT_BLOCK.REP_FORMAT); -- Form's Text Field
      SET_REPORT_OBJECT_PROPERTY(rep_obj,REPORT_SERVER,v_rep_server);
      SET_REPORT_OBJECT_PROPERTY(rep_obj,REPORT_DESNAME,:TEXT_BLOCK.FILE_NAME);  -- Form's Text Field
      SET_REPORT_OBJECT_PROPERTY(rep_obj,REPORT_OTHER,'paramform=no'||
                                                      ' P_SERVERNAME='||v_rep_server||
                                                      ' P_ACTION='||v_p_action);
      set_report_object_property(rep_obj,REPORT_FILENAME,v_rep_obj_path||lower('short.rdf'));
      v_rep := RUN_REPORT_OBJECT(rep_obj);
      rep_status := REPORT_OBJECT_STATUS(v_rep);
      WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
        LOOP
          rep_status := report_object_status(v_rep);
        END LOOP;
      IF rep_status = 'FINISHED' THEN
          WEB.SHOW_DOCUMENT(v_rep_getjobid||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_rep_server,'_blank');
          WEB.SHOW_DOCUMENT(v_rep_killjobid||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_rep_server,'_blank');
      ELSE 
        message('Error when running report', Acknowledge);  
      END IF; 
    EXCEPTION
       WHEN OTHERS THEN
            show_err_msg;
    END;
    ---------------------------------- END of CODE -----------------------------
    Please help where I made mistake.
    Regards.

    thanks for reply.
    but how I can do it? report runtime should call and when it will complete then one can save but again how ? will you please give me an example. I do not want the user to see the output instead report should save in a location which is in  SET_REPORT_OBJECT_PROPERTY(rep_obj,REPORT_DESNAME,:TEXT_BLOCK.FILE_NAME); 
    Please consider, I already have mentioned that I am new in this area. I tried google to search but failed. some PDFs downloaded but nobody has mentioned there to use WEBUTIL package to save this report output.
    Regards.

  • Copying Windows files (pdf, jpg, .docx) to iPad?

    We frequently travel with our dogs and we like to have some of their medical records with us.
    Vaccination records, certificates, etc.
    I have those on my Windows 7 machine as pdf's, jpg's and Word documents.
    I'd like to get a copy (they are usually good for a year) to my iPad so that we would have easy access to it.
    I know how to make a new folder and move apps into that folder.
    What is the best way to get these kind of files to my iPad? Or is there an app for this?
    Thanks for any help or advice!

    You can't create folders for file storage on the iPad like you can on a computer. On the iPad, documents are stored in an app that is compatible with that particular file type. An app that can save, edit or create that file type is what you need.
    For PDF files, there are free apps such as Apple's iBooks and Adobe Reader. Both apps will store PDFs for viewing,, but Reader will lay to annotate the PDFs. There are scads of other apps that work with PDFs, but these two are free.
    For the MS office files, Word, Excel and PowerPoint compatibility there apps available in the app store like Quick Office Pro and Documents to Go. Take a look at those and see what you think. Apple also has their iWorks suite of apps, Pages, Numbers and Keynote that are compatible with the MS Office apps.
    You can email files to the iPad, use something like DropBox to transfer files and for apps that support file sharing - you can use iOS file sharing with iTunes on your computer.
    iOS: About file sharing.
    http://support.apple.com/kb/HT4094
    You should be able to email jpg files and then save them in the Photos app on the iPad.
    GoodReader is one app that allows for some file structure. I do not use it and don't know much about it. You can check it out here and in the app store as well.
    http://www.goodreader.net/goodreader.html

  • Is it possible to add documents (word files, pdfs, jpgs, zip files) to dvd?

    Hello
    I have my film compressed on dvd and was wondering if it is possible to add a folder with some files...word documents, jpgs, etc?
    Thanks

    Hi Bruce
    Yes, you can. There are a couple of ways to approach it.
    The first is to simply include the folder, and have some kind of written instruction on the DVD, or in the box, as to how to find them. So there's no intelligent linking between the DVD video and the extra content. To accomplish this, create a folder manually in the Finder (eg "Temp"), create a subfolder within it called, for example "Extra Content", and then find the "DVD-ROM" section in the Inspector, tick "Content" and browse for your parent (Temp) folder. The Temp folder does not get added to the DVD, but its contents (the Extra Content folder) does.
    The second is to make the DVD more interactive by making links between the DVD content and the additional material. So, for example, you can build a button which automatically opens a Finder window of the Extra Content folder. You should look at the "DVD@ccess" feature in the Help menu / user guide to find out more. This tends to be less reliable, since Mac users have to set DVD Player to use DVD@ccess links, and PC users have to install a piece of software that DVD Studio Pro puts onto the DVD.
    If possible, I would recommend the former, just because it's easy and doesn't depend on extra software.
    Matt

  • Upload file and update text at the same time

    I wanted upload a file and i have text box also, i know how
    to upload a file but the problem i cannot update the text box at
    the same time can anyone share how, I'm using the
    ASPSimpleUpload.Upload.
    please helpe thanks

    Do you mean something like this?
    SQL> create table table_name
      2  (column_a number
      3  ,column_b number
      4  ,column_c number
      5  ,date_column_d date
      6  );
    Table created.
    SQL>
    SQL> insert into table_name values (0,0,0,sysdate);
    1 row created.
    SQL> insert into table_name values (1,1,1,sysdate);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> create view view_name
      2  as
      3  select
      4  column_a,
      5  column_b,
      6  column_c,
      7  case when column_c = 1 then to_date('01-JAN-1900','DD-MON-YYYY')
      8       else date_column_d
      9  end  date_column_d
    10  from
    11  table_name;
    View created.
    SQL> select * from view_name;
                COLUMN_A             COLUMN_B             COLUMN_C DATE_COLUMN_D
                       0                    0                    0 12-DEC-2008 07:42:15
                       1                    1                    1 01-JAN-1900 00:00:00Edited by: SomeoneElse on Dec 12, 2008 7:42 AM

  • ADOBE READER (9.4.1) prints several files from one Word doc with different pages formats

    I work with Word for Mac, version 11.6.1
    When I have one document with several pages setup (say different sizes, or landscape and vertical orientation) and I need to convert to PDF, I got several PDF files, one for each page section of my document.
    How can I get only one PDF for my whole document ?
    Thanks a lot.
    STURIONE
    Santiago - Chile
    Feb 05, 2011

    Thank you, MichaelKazlow, for your reply/suggestion.
    Actually, I'm not very familiar with this kind of technology, so I'll do my best trying to find out solution following your recommendation.
    Tks again.

  • Can you work between mac based and pc based files using Photoshop, Illustrator, Indesign, etc. without any font issues?

    I work for a print company and we are wondering if Creative Cloud eliminates the font issues from designing a project on a pc and then making changes on a mac later without font issues.

    I should clarify a bit...If a customer sends us an InDesign file that they created on a pc and I open it on my mac, will I be able to load the pc fonts without any issues? I realize that if they are open type fonts I would be ok but how about any other fonts?

  • Raw files converted to binary docs (exec).  Any ideas on how to get them back to raw?

    Ok. Short and sweet first post here.  Thanks in advance for any assistance.
    I've done this same process on jpegs many times without issue.  This time I forgot where I was in my workflow and tried a batch rename on my raw files.
    I selected all raw files in a folder, went to tools -->  batch rename and entered my file naming sequence as I wanted it to read.  Hit enter and watched the file names change correctly BUT the actual files were converted to "binary documents" and I can't figure out how to get them back to raw.  My thumbs are gone.  If I click on one of the files, the exec file tries to load in terminal.
    What happened to my raw files?  There are 255 images here from a wedding that I would rather not edit all over again.  Please help!
    Mac OSX 10.5.7
    Bridge CS3 2.1.1.9

    Ok.  The files don't read any particular extension as seen in my previous attachment.  F2 brightens my monitor.  It is not associated with any other shortcut.  Right click --> rename (not batch) brings the thumbnail back but without the edits.  All I did in the beginning was batch rename a folder full of raw images plus 3 psd files. Nothing else.  You can see that "new extension" is selected in the top field of the batch rename window.  is this the mistake and how can I recover my edits if it is.  
    There are 253 edited images in this folder.  Manual renaming will take ages.  Editing all of them again is also making me ill.    I was prepping the files for client submission which is due today when this happened.

  • Uploading files from Ipod to my comp. Any ideas?

    I recently formatted my hard drive assuming that I would be able to transfer the files on my Ipod to my new fresh install of Windows XP but it lookes like its not possible. Is there something I'm missing here? I hope I dont have to redownload everything again, including the music and videos I purchased. Any ideas?

    The transfer of purchased content from the iPod to authorised computers has been introduced with iTunes 7. A paragraph on it has been added to this article: Transfer iTunes Store purchases using iPod
    The transfer of non iTMS content such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there is a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows posted in this thread: MacMuse - iPod to iTunes
    If you prefer something more automated then there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod, this is just a selection. Have a look at the web pages and documentation for these, they are generally quite straightforward. You can read reviews of some of them here: Wired News - Rescue Your Stranded Tunes
    YamiPod Mac and Windows Versions
    iGadget Windows Only
    iPod Access Mac and Windows Versions
    PodUtil Mac and Windows Versions
    iPodCopy Mac and Windows Versions
    PodPlayer Windows Only
    CopyPod Windows Only

  • Upload file in google docs is ignored in FF 4b4 (OK other browsers and previous versions of FF)

    I am using Firefox 4.0 Beta 4 and think there is a problem with the "Upload file" functionality in google docs combined with the latest beta4 release of FF. It worked up until beta v3. I have also installed v3.6.8 and seems to be a problem on all such evironments. I use Windows XP. I tried to disable adblock plus but same problem persists and I have to use say Opera.
    Google docs provides an excellent gateway to publish stuff to my blog and to publish plain office and pictures. I have tried to disable "Popup blocker" but no difference.
    Any help most welcome.
    Screenshot - using trace: Tools->Inspect:
    https://docs.google.com/leaf?id=0BxYmgdfTki9SODU1ODk2NTAtMGYwMi00OGI4LWFkM2QtMDAyYmZmODlkZjE5&hl=en&browserok=true as well as
    http://www.google.no/search?as_q=%22Select+files+to+upload%22+firefox+beta+problem&hl=no&num=100&btnG=Google-s%C3%B8k&as_epq=google+docs&as_oq=&as_eq=&lr=&cr=&as_ft=i&as_filetype=&as_qdr=all&as_occt=any&as_dt=i&as_sitesearch=&as_rights=&safe=images

    There is a problem with uploading files to Google docs in Firefox 3.6x versions and later.
    http://www.google.com/support/forum/p/Google+Docs/thread?tid=4f0369bdcf6fd7ff&hl=en "Select files to upload" not working in Firefox - Google Docs Help (Thanks to Joolsa for the link)

  • Uploading files to Doc Library

    Hello everyone,
    is there an easy way to upload files into a library without(!) having any client assembly? Like just a WebService or anything else. I want to upload files to a https destination (sharepoint library) and it should be a beatiful way using PowerShell and direct
    uploading via WebService. The file is 5 MB large. Is there a good way to do this instead of using a network drive? I was searching for it but non of them is about https.
    Thanks!
    Best,
    Chris

    Hi,
    If you want to upload file from client side programmatically, the Client Object Model SDK(assembly) is required during the development using C# or PowerShell.
    Without SharePoint Client Object Model dlls, we will not be able to take use of the APIs to access the SharePoint objects from client side.
    Best regards
    Patrick Liang
    TechNet Community Support

  • PDF to Word(.doc) document not convert correctly

    Hi
    I'm trying to convert a pdf file into a word document but i'm unable to do it. the reason is i want to fill in an income tax form which is in a pdf format and i can't add any details in the file...
    How do i convert this file into a word doc file, someone can help plz,,,step by step as i'm not really an expert in this field..
    Regards

    If you have adobe X, simply go to "File" -> "Save-As" and Microsoft Word is an option. Also, there is a download (paid) called Able2Extract that will allow you to convert pdfs to word, excel, etc. but the formatting is often lost. If you get the premium package, you can even convert scanned documents. I've used Adobe X to do the conversion, and it retains headers, footers and all formatting.
    And i personally share you with a article about how to converting PDF files to Word(.doc), you just need to follow the easy guide.
    Hope it can help you a lot.

Maybe you are looking for

  • ITunes will not quit - even "Force Quit"

    When I installed the 8.0.1 patch on my iMac, I noticed that iTunes quit working correctly after importing some new tracks. It would not quit. I had to force quit but then it would not open correctly the next time and it would not quit. From that poin

  • Balance sheet a/c - Planning

    Hello Gurus     My client requirement is they want to maintain the planning in balance sheet account also, so I have maintained the plan values  in T code 7KE3 if I execute the std report of profit center plan/actual/variance , here I can able to see

  • Cluster with shared domain folder using OCFS2 and the domain /tmp folder

    I've setup a cluster with two machines and one managed server on each machine. One of the machines also hosts the admin server. Initially, both managed servers were running on the same machine. Everything worked well. When I move to having two machin

  • Adobe Tutorial Help please?

    Hi, Trying to do the tutorial but have no idea of C#. I have tried running the code through a convertor but keep getting errors. Can anyone convert this from C# to VB <script runat="server"> protected void Page_Load(Object Src, EventArgs E) // Don't

  • 2012 Macbook pro restarts unexpectedly

    My 2012 Macbook Pro with Retina restarts unexpectedly. It might go a day or two without doing it, but then it might continually restart 5 times in an hour.  My computer screen will suddenly go black. The computer sounds like it's still running, but i