Download file problems

Hi all,
I write a jsp page for downloading file (any file type) with "Open" and "Save" button. Save all OK, but some file I can Open
Here my jsp code :
BufferedOutputStream output = null;
try {
response.setContentType("application/octet-stream");
response.setHeader("Location", fileName);
response.setHeader("Content-Disposition", "attachment; filename=" + fileName);
int length = (int) file.length();
if (length > 0) {
response.setContentLength(length);
output = new BufferedOutputStream(response.getOutputStream(), 1024 /* buffer size */);
response.setBufferSize(1024);
//when we start download, we cannot redirect or raise exceptions
FileUtil.popFile(file, output);
output.flush();
} catch (FileNotFoundException e) {
log.error("Can't find the such log file on server " + fileName);
} catch (IOException e) {
log.error("Error while trying to send backup file from server (" + fileName + ").", e);
} finally {
if (output != null) {
try {
output.close();
} catch (IOException e) { }
public static void popFile(File srcFile, OutputStream output) throws IOException {
BufferedInputStream input = null;
byte[] block = new byte[1024];
try {
input = new BufferedInputStream(new FileInputStream(srcFile), 1024);
while (true) {
int length = input.read(block);
if (length == -1) break;// end of file
output.write(block, 0, length);
} finally {
if (input != null) {
try {
input.close();
} catch (IOException ex) {
// just ignore
* How can I limit file size when uploading. I use Struts framework

Hi all,
I write a jsp page for downloading file (any file type) with "Open" and "Save" button. Save all OK, but some file I can Open
Here my jsp code :
BufferedOutputStream output = null;
try {
response.setContentType("application/octet-stream");
response.setHeader("Location", fileName);
response.setHeader("Content-Disposition", "attachment; filename=" + fileName);
int length = (int) file.length();
if (length > 0) {
response.setContentLength(length);
output = new BufferedOutputStream(response.getOutputStream(), 1024 /* buffer size */);
response.setBufferSize(1024);
//when we start download, we cannot redirect or raise exceptions
FileUtil.popFile(file, output);
output.flush();
} catch (FileNotFoundException e) {
log.error("Can't find the such log file on server " + fileName);
} catch (IOException e) {
log.error("Error while trying to send backup file from server (" + fileName + ").", e);
} finally {
if (output != null) {
try {
output.close();
} catch (IOException e) { }
public static void popFile(File srcFile, OutputStream output) throws IOException {
BufferedInputStream input = null;
byte[] block = new byte[1024];
try {
input = new BufferedInputStream(new FileInputStream(srcFile), 1024);
while (true) {
int length = input.read(block);
if (length == -1) break;// end of file
output.write(block, 0, length);
} finally {
if (input != null) {
try {
input.close();
} catch (IOException ex) {
// just ignore
* How can I limit file size when uploading. I use Struts framework

Similar Messages

  • Download file problem

    Hi all,
    I write jsp to allow user download file from server, but I only download the path C:/Project Coding.doc into my file not the file itself.
    <%@ page language="java" import="java.net.*,java.io.*"%>
    <%@ page import ="java.util.*"%>
    <%
    OutputStream outStream = null;
    try
    String SContent ="C:/Project Coding.doc";
    String SDocName = "temp.xls"; // File Name
    outStream = response.getOutputStream(); // Getting ServletOutputStream
    response.setContentType("application/vnd.ms-excel"); // Setting content type
    response.setHeader("Content-disposition","attachment;filename="+SDocName); // To pop dialog box
    byte[] buff = SContent.getBytes(); // Converting file content to byte array
    outStream.write(buff,0,buff.length); // Write to the OutputStream
    outStream.flush(); // Forcing buffered bytes to be written out.
    catch(final IOException e)
    System.out.println ( "IOException." );
    catch(Exception e1)
    System.out.println ( "Exception." );
    finally
    if (outStream != null)
    outStream.close();
    %>

    Hi all,
    Thank you fro the reply,
    the following hard code woke
    <%@ page language="java" import="java.net.*,java.io.*"%>
    <%@ page import ="java.util.*"%>
    <%
    try
    //String SContent ="C:/Other Sources Viruses 2004.xls";
    String SContent ="C:/Project Coding.doc";
    //String SDocName = "temp.xls"; // File Name
    String SDocName = "temp.doc"; //  out put file File Name
    ServletOutputStream stream= response.getOutputStream(); // Getting ServletOutputStream
    //response.setContentType("application/vnd.ms-excel"); // Setting content type
    response.setContentType("application/msword"); // Setting content type
    response.setHeader("Content-disposition","attachment;filename="+SDocName); // To pop dialog box
    BufferedInputStream in = new BufferedInputStream(new FileInputStream(SContent));
    int c;
    while ((c = in.read()) != -1){
               stream.write(c);
    in.close();
    stream.flush();
    catch(final IOException e)
    System.out.println ( "IOException." );
    catch(Exception e1)
    System.out.println ( "Exception." );
    %>but if I change the SContent from a html file
    String SContent = request.getParameter("click");
    I got the following error
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
         org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:599)
    any advice?
    Thank you !

  • Download file problem for binary data?

    Dear All,
    I have wrote a jsp file to do download page. I have used a piece of code from the JDC to this. This code will prompt the download dialog box each time user clicks the download button. The code itself will set the content type for different application. The code is like below:
    try
    java.io.File fileobj = new java.io.File(strFolder + strFile);
    response.setContentType(application.getMimeType(fileobj.getName()));
    response.setHeader("Content-Disposition","attachment; filename=\""
    + strFile + "\"");
    java.io.FileInputStream in = new java.io.FileInputStream(fileobj);
    int ch;
    while ((ch = in.read()) != -1) {
    out.write(ch);
    out.flush();
    in.close();
    } catch(Exception e)
    The code can download and handle text file correctly when it is openned in the text editor or inside the IE. But when a PDF file or Image is downloaded and openned in the PDF viewer or image viewer, it is corrupted and cannot be viewed. What is the problem? Any ideas?
    So, I wonder this code can handle binary data or not. It is seen like there is no different code to handle text and binary data in Java/Jsp.
    Thank you very much!
    Best Regards,
    Rockyu Lee
              

    Add following lines to .tld file (custom tag definition)
    <tag>
    <name>downloadbinary</name>
    <tagclass>org.rampally.DownloadBinaryTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    Add following line to JSP files.
    In JSP, keep one line of source. Make sure that there are no space and additional line feeds at the any where
    in the JSP files except JSP tags.
    <%@ taglib uri="/WEB-INF/taglibs/mb.tld" prefix="mytags" %>
    <mytags:downloadbinary />
    I am hoping that you have all required parameters such as fileName to download, etc.
    in your session or request object.
    Tag class ....
    public class DownloadBinaryTag extends TagSupport {
         public int doEndTag() throws JspException {
              // TODO: get binary data from filename or
              // binary data buffer from datase.
              // I am making it simple .. assume that it is a request parameter for
              // you test easily.
              String fileName = request.getParameter( "filename" );
              java.io.File file = new java.io.File( fileName);
              java.io.DataInputStream dis;
              try {
                   dis = new java.io.DataInputStream(new FileInputStream(fileName));
              } catch (FileNotFoundException e) {
                   // do error handling ...
                   return EVAL_PAGE;
              BinaryUtil.sendBinaryFile( dis, (HttpServletResponse) pageContext.getResponse(), contentType );
              return EVAL_PAGE;
    public class BinaryUtil
         static public void sendBinaryFile( DataInputStream dis,
                                  HttpServletResponse response,
                                  String contentType ) {
              try {
                   response.setContentType(contentType);
                   String fileName="test.pdf";
                   response.setHeader("Content-disposition", "inline; filename=" + newFileName );
                   ServletOutputStream sout = response.getOutputStream();
                   int len;
                   byte[] data = new byte[128 * 1024];
                   while ((len = dis.read(data, 0, 128 * 1024)) >= 0)
                        sout.write(data, 0, len);
                   sout.flush();
                   sout.close();
              } catch (Exception e) {
                   System.out.println(e.getMessage());
         static public void sendBinaryFile( byte[] data,
                                  HttpServletResponse response,
                                  String contentType ) {
              try {
                   response.setContentType(contentType);
                   String fileName="test.pdf";
                   response.setHeader("Content-disposition", "inline; filename=" + newFileName );
                   ServletOutputStream sout = response.getOutputStream();
                   sout.write(data);
                   sout.flush();
                   sout.close();
              } catch (Exception e) {
                   System.out.println(e.getMessage());
    You may have to change 'inline' to 'attachment' if you do not want IE to inline the document.
    That's all!!.. Hope this helps...!

  • Flex 3 download file problem

    Hi,
    My Flex 3 app uses a php script to download a file, it seems
    like it works with the file appearing on the desktop but the file
    is only 1 byte long. The php and Flex are running on Leopard,
    here's the php (I think it's from some Adobe sample code), any help
    appreciated.
    $query = "SELECT * FROM uploads WHERE upload_id = $id";
    $result = mysql_query($query, $conn);
    if(mysql_num_rows($result))
    $row = mysql_fetch_assoc($result);
    $fn = $row["upload_filename"];
    $ft = $row["upload_filetype"];
    $fs = $row["upload_filesize"];
    $the_file = '../../uploads/' . $id;
    header("Content-Type:$ft\n");
    header("Content-disposition:
    attachment;filename=\"$fn\"\n");
    header("Content-Length: $fs\n");
    readfile($the_file);
    Thanks,
    Paul

    Sorry, guys...
    Don't you hate it when just after you post a question you
    discover a stupid mistake. Found the problem - dumb typo.
    Paul

  • Problem with downloading file from FTP server

    Hello all
    I have uploaded a file from an application i developed and i want to download this file from another application. The code is
    public static void FTPcon() throws FtpException{
       String hostname = "my.ftp.server";
       String username = "myusername";
       String password = "mypass";
       Ftp ftp = new Ftp(hostname,username,password);
       ftp.setHostname(hostname);
            ftp.setUsername(username);
            ftp.setPassword(password);
            ftp.connect();
            ftp.setBinary();
            ftp.download("file.dat");
            ftp.disconnect();
    }The error i receive is java.io.FileNotFoundException: public.dat (The system cannot find the file specified) but the file is on the server.
    Thanks in advance for any help

    Cotton thank you for your reply
    Any other sugestions please?The server disagrees. So...
    - the file does not existThe file exists.I checked it with an FTP client program.
    - the file has a different nameThe file name is correct
    - you are connected to the wrong serverI am connecting to the correct server
    - you are in the wrong ftp directoryThe file is placed in the home directory
    - the ftp library you are using is broken (less
    likely)I am using the library from jscape.I dont think is broken because i can upload the file from the first application.
    >
    FTP isn't somehow broken in Java. I use it all the
    time. The problem is something listed above. I would
    check all of the first four if I were you because
    that's most likely where the problem is.Message was edited by:
    flightcaptain

  • Names of downloaded files appear in Downloads Window only if that window is open during download. I run Firefox 4 on windows xp 32 bit sp3. I didn't have such problem with Firefox 3. Can somebody please help me?

    When I download a file with firefox 4 Downloads Window opens but downloading file name doesn't appear there. If I keep Downloads Window open further downloads appear in it but if i close it and reopen it again it appears blank, all downloaded file names are disappeared. I tried everything, unchecked "Remember download history" box and checked it again, deleted downloads.sqlite file, even created new profile but nothing helped.

    It is easy for me to explain things badly, and I can not see what you are actually doing, I will therfore try to list as steps to take.
    Please confirm that you have used firefox safe mode and still see the problem, by doing the following:
    # open firefox - use any profile
    # use '''Firefoxbutton -> Help -> Restart with add-ons disabled'''
    # you should now see an options dialogue with a list of check box options,
    #*you may get a confirmation option, if so accept it
    #* do you now see the listing of check boxes, with a continue button at the bottom
    #without making any changes, click the continue with safemode
    # firefox should now restart in safe-mode
    Now try the downloading, whilst we know you are in safe mode.
    # once a download has completed, use the option to open the containing folder that you see in your download manager
    ## does that option work ok,
    ## does it open a folder with downloads in it, make a note of the folders path/location/name
    ## do you see the downloaded file you just downloaded
    ## if so regardless of what the downloads folder says you have found the downloads
    ## close firefox and the folders with the downloads
    ## are you now able to reopen the 'containing' folder and find the downloads <br />( use Windows Explorer, not clicking on firefox, - firefox is closed)
    ## close the folder again
    ## open firefox, this time no need to be in safe mode
    ## look again for the containing folder whose name you noted down, does it still contain the downloads
    #'''IF''' you are getting problems now that you are in safe mode read the article about [[Unable to download or save files]]
    ## the article has several steps it suggests you try,
    ## please try all the steps in turn and report what happens with each step

  • Hi im having huge problems trying to install flash for my mac 10.5 imac, iv gone through the internet and tried all of the solutions, everytime i try to install flash it says cant read the download file, or it just wont install, anybody plz help!

    hi im having huge problems trying to install flash for my mac 10.5 imac, iv gone through the internet and tried all of the solutions, everytime i try to install flash it says cant read the download file, or it just wont install, anybody plz help!
    iv unistalled flash, iv checked plug ins it just wont work,

    It would have been a great help to know precisely what Mac you have, so some of the following may not apply:
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS. Note that version 10,1,102,64 is the last version available to PPC Mac users*. The latest version,10.3.183.23 or later, is for Intel Macs only running Tiger or Leopard, as Adobe no longer support the PPC platform. Version 11.4.402.265 or later is for Snow Leopard onwards.
    (If you are running Mavericks: After years of fighting malware and exploits facilitated through Adobe's Flash Player, the company is taking advantage of Apple's new App Sandbox feature to restrict malicious code from running outside of Safari in OS X Mavericks.)
    * Unhelpfully, if you want the last version for PPC (G4 or G5) Macs, you need to go here:  http://kb2.adobe.com/cps/142/tn_14266.html  and scroll down to 'Archived Versions/Older Archives'. Flash Player 10.1.102.64 is the one you download. More information here:  http://kb2.adobe.com/cps/838/cpsid_83808.html
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications (including Safari) first before installing. You must also carry out a permission repair after installing anything from Adobe.
    After installing, reboot your Mac and relaunch Safari, then in Safari Preferences/Security enable ‘Allow Plugins’. If you are running 10.6.8 or later:
    When you have installed the latest version of Flash, relaunch Safari and test.
    If you're getting a "blocked plug-in" error, then in System Preferences… ▹ Flash Player ▹ Advanced
    click Check Now. Quit and relaunch your browser.
    You can also try these illustrated instructions from C F McBlob to perform a full "clean install", which will resolve the "Blocked Plug-in" message when trying to update via the GUI updater from Adobe.
    Use the FULL installer for 12.0.0.44:  Flash Player 12 (Mac OS X)
    And the instructons are here: Snow Leopard Clean Install.pdf
    (If you are running a PPC Mac with Flash Player 10.1.102.64 and are having problems with watching videos on FaceBook or other sites, try the following solution which fools the site into thinking that you are running the version 11.5.502.55:)
    Download this http://scriptogr.am/nordkril/post/adobe-flash-11.5-for-powerpc to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.

  • Download file from UNIX to EXCEL problem

    Hi,
    I am trying to download file from UNIX server to excel file, there is one column which is messing up and that is number 100000000000000002 (18 in length) it is writing as 1E+17, funny thing is when I click on that cell it is showing as
    100000000000000000.
    I am using GUI_DOWNLOAD to download to excel, below is the output excel format, I am talking about 4th value from left
    GUID    leg_reg     lic_type     lic_num     ex_lic_num     vali_from     valid_to     created_by
    3E633B85C05E6F28E100     EAR     ENC     1E+17     ENC     20030305     20930305     VANRIJ
    below is the program I am using to download the output from UNIX to excel
    FORM get_data_file.
      OPEN DATASET p_unxfil FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc = 0.
        DO.
          READ DATASET p_unxfil INTO input_file_tab-line_string.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          APPEND input_file_tab.
          CLEAR  input_file_tab.
        ENDDO.
      ELSE.
        PERFORM write_message USING 'ZZ' 'E' '000'
          'Unable to find file' p_unxfil
          '  Press Enter key to exit.' ''.
      ENDIF.
      CLOSE DATASET p_unxfil.
      DESCRIBE TABLE input_file_tab LINES record_cnt.
    ENDFORM.                    " get_data_file
    FORM create_pc_file.
      DATA: l_file TYPE string.
      MOVE p_pcfile TO l_file.
    Save the file
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_file
        TABLES
          data_tab                = input_file_tab
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc NE 0.
        WRITE: / 'Error creating pc file', p_pcfile.
        EXIT.
    endif.
    I will assure of points.
    Thanks for your help
    Sarath

    It is not the problem of your program. This happens becuase of the "nature" of the excel. You need to retain the text property of that column.
    Try like this:
    1. Download the file in .txt
    2. Open Excel .. blank sheet
    3. Now, click on Open. Select your .txt file
    4. One pop up will come ..."Text Import Wizard"
    5. Select the fixed width or Delimited ... Press Next ...
    6. Select appropriate delimitors or fixed length .. press Next
    7. Select your coulumn (which has the problem), Select the "Text" radiobutton on the upper-right corner and finish.
    Regards,
    Naimesh Patel

  • Japanese character problem while downloading file to application server

    Hello All,
    We are facing a strange problem while downloading a file to application server when file contains japanese text.
    We are downloading vendor and customer information in a flat file format on application server. When the login language is EN program show ouput in a properly formatted manner.
    When the login language is JA (japanese) program does download file with customer vendor data. I can see the description is japanese language but the formatting is gone for a toss.
    We are facing similar issue with other programs downloading files on the application server.
    I am using OPEN DATASET........ENCODING DEFAULT. and working on unicode enabaled ECC 6.0 system
    Quick help appriciated.
    Thanks!

    Hi
    Sometimes this also happens because of your desktop setting.Make sure that your OS also supports the JAPANESSE language.
    Ask your technical support team to enable them in your desktop.
    Thanks & Regards
    Jyo

  • File Download - 403 problem

    Hi Folks,
    From long time away from here, I am back.
    In my application we are using only ADF Faces. There is a functionality in my application to download some files that have been previously uploaded by any user.
    The problem is that the file is not written in a file system. It is inside database.
    When the user clicks the download button from an af:table, it starts a method from a backing bean that goes to the database and gets the binary code from there.
    It writes the binary array in the response output but since the download has not started by the user the IE 7 and 8 shows the information bar stating that Internet Explorer has blocked this site from download...
    I have read that it is a default behaviour from IE7 and 8 when the user does not click in a link directly pointed to a file in a server.
    I tried to put the site in Trusted Sites.
    The only solution that I found was to enable "Always prompt for downloading". It works but I cannot use this solution since the application is going to run in a big Brazil TV Channel company throughout the country and change it is very difficult.
    I so that the difference between the REQUEST HEADERS is the Transfering-Enconding chunked, but it is related to content-lenght, when it is not specified. I tried to specify content-lenght and it did not work.
    When I click the bar and choose download file option, it redirects to the same page that I was, changing the afrSOMETHINGMode from 0 to 2 and adding the afrWindow to null.
    It gets me a 302, another two other GETs are done witouht success to the context root and at the last one I get the 403.
    Does any body have any light?
    Thanks in advance.

    Hi Mr. Puthanampatti,
    I used your above code for a download button.
    When I click the button the window will arise and we can download the file.
    But after that the button will not become enable.
    Normally when the task is over the button will automatically enabled. Butt here it is not happening and we can click the button only one time without refreshing the page.
    (I assumed you have used res for HttpServletResponse)
    the code I had used is mentioned below. Please tell me what can I do...??
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExternalContext externalContext = facesContext.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)externalContext.getResponse();
    File file = new File(dir1, pdffile1);
    BufferedInputStream input = null;
    BufferedOutputStream output = null;
    try {
    input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
    response.reset();
    response.setContentType("application/pdf");
    response.setContentLength((int)file.length());
    response.setHeader("Content-disposition", "inline; filename=\"" + pdffile1 + "\"");
    output = new BufferedOutputStream(response.getOutputStream(), 10240);
    byte[] buffer = new byte[10240];
    int length;
    while ((length = input.read(buffer)) > 0) {
    output.write(buffer, 0, length);
    output.flush();
    } finally {
    close(output);
    close(input);
    facesContext.responseComplete();Thanks a lot.
    Dinuka.

  • Problem downloading file's from a .php cart

    Having problems downloading files form a php based cart software, but Firefox works fine and also on a PC they download on Explorer fine, is there a setting on Safari to fix this or is there another way around this.

    Welcome to Apple Discussions
    Usually, this type of content doesn't work on Safari due to a PC mentality when coding the site. Here, Firefox etc. are better able to read this code.
    Also, a good reason for having alternate browsers from which to choose.

  • TS5179 I've been bitten by the "Missing MSVCR.dll file" problem when downloading the latest iTunes update (PC w/ Win-7 & Outlook-2007#. 'Have followed Apple's instructions of un-installing all Apple software, and re-installing it. #out of space...??)

    I've been bitten by the "Missing MSVCR.dll file" problem when downloading the latest iTunes update, 11.4.62 (on a PC w/ Win-7 & Outlook-2007#. 'Have followed Apple's instructions of un-installing all Apple software, and re-installing it (Ugh).  First result Outlook couldn't find my 1,385 item contact file in iCloud, although the outlook distribution lists were there.  Second result, upon installing iCloud again, I have two iCloud contact files shown in outlook - "iCloud" & iCloud, within iCloud".  1,332 & 1,385 contacts respectively. 
    Plus an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  This is NOT fun at 72-yrs old...!!
    So, how do I make sure I haven't lost anythying from Outlook?   Russ-AZ

    Interesting response, Kappy  -  Back to original post: "First result: Outlook couldn't find my 1,385 item contact file in iCloud, although the outlook distribution lists were there (therefore, initially I had lost my contact file from Outlook).  Second result, upon installing iCloud again, I now have two iCloud contact files shown in Outlook - "iCloud" & iCloud, within iCloud".  W/ 1,332 & 1,385 contacts respectively.  
    Plus an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  This is NOT fun at 72-yrs old...!!
    So, how do I make sure I haven't lost anythying from Outlook?   Russ-AZ"
    You can safely assume that I have tried using it!   So, to make things a little clearer:
         1)  I now have two iCloud "contacts files", w/ a different total count. What's the difference?  Why the different toatl count?
         2)  Since re-installing the Apple software (part of the MSVCR" recovery instructions) "couldn't possible affected Outlook", why am I getting an iCloud installation error message saying iCloud moved 6,835 files to a "deleted items folder" somewhere.  What's in those files? And where are they?
    Probably more important questions get down to:
         3)  Why is a basic Apple product upgrade "screwing-up Outlook"?  This iTunes upgrade, failing to install properly forced Outlook 2007 into a 2-min start-up cycle.  Which was fixed with this "Goat-Rpdeo" of re-installing MSVCR80.dll.
         4)  And under the latest release of iOS-7.0.4 on our iPhones, why is Apple now forcing us to use the iCloud to back-up our contacts, calendars & tasks, vs. allowing these files to be backed-up directly on our PC's via the USB cable?
    Thanks again for your interest and comments.  - Russ-AZ

  • HT1338 I have a problem with opening downloaded files from the internet; zip types. Can you tell me an app to open these types of formats of files?

    I have a problem with opening downloaded files from the internet; zip types. Can you tell me an app to open these types of formats of files?

    It should unzip if you double-cick.
    What are you seeing happen when you do that?
    Select a .zip file in the Finder and Get Info (cmd-i). What is set for it to Open With. It should be Archive Utility.

  • Problem with downloading files!

    Hi, I am using a9300 MTN as my service provider! Lately I cannot download or open any files on the internet! I hav rebooted my phone numerous times and the problem still persists! Cud it be a software issue or is my service provider having trouble with providing internet service to us! Help!! Really getting frustated!!☹
    Solved!
    Go to Solution.

    Hey kgaoza12,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Downloading files from the browser is controlled and throttled by your network service provider.  I suggest you contact them for more information.
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Problems with downloading file from database!

    I have a table with my files:
    NAME     VARCHAR2(256)
    LAST_UPDATED     DATE
    MIME_TYPE      VARCHAR2(128)
    DOC_SIZE     NUMBER
    DAD_CHARSET     VARCHAR2(128)
    CONTENT_TYPE     VARCHAR2(128)
    CONTENT     LONG RAW
    BLOB_CONTENT      BLOB
    ID     NUMBER
    I have a procedure which download file for it's ID:
    procedure DownloadFile(id number)
    is
    v_mime VARCHAR2 (48);
    v_length NUMBER;
    v_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    i integer;
    BEGIN
    i:=id;
    SELECT d.mime_type, d.blob_content, d.NAME, DBMS_LOB.getlength(d.blob_content)
    INTO v_mime, lob_loc, v_file_name, v_length
    FROM documents d, mydocs m
    WHERE d.id=m.doc_id
    and m.id=i;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    OWA_UTIL.mime_header (NVL (v_mime, 'application/octet'), FALSE);
    -- set the size so the browser knows how much to download
    HTP.p ('Content-length: ' || v_length);
    -- the filename will be used by the browser if the users does a save as
    HTP.p ( 'Content-Disposition: attachment; filename="'
    || REPLACE (REPLACE (SUBSTR (v_file_name,
    INSTR (v_file_name, '/') + 1
    CHR (10),
    NULL
    CHR (13),
    NULL
    || '"'
    -- close the headers
    OWA_UTIL.http_header_close;
    -- download the BLOB
    WPG_DOCLOAD.download_file(lob_loc);
    end;
    And when I press Download button, it open the file content in browser.
    But I need save dialog, for saving the file in the clien machine.
    How to solve this problem?
    Regards,
    Kostya!
    Message was edited by:
    Kostya

    How downloaded objects/document are treated in browser is purely "browser defined behavior". Sometime someone said that or these kind of files (recognized by miome contenet - alias file extension) default behavior will be "show inline" or show in browser. This is esspecially true for Adobe 7.x and IE 6.x and Firefox 2.x....
    For a test of my thoughts, install new browser (let say Opera or Mozila) and try to download LOB(doc). I'm sure that "Save As" dialog will show!
    Hope this helps!

Maybe you are looking for

  • Table  for pegged requirement

    HI, I need to develop a report to  identify the pegged requirement against purchase requsition for the dependent requirements of low-level components. i have checked MD_PEGGING  and MD_PEGGING_NODIALOG but these FM are not suitable for my requirement

  • Events on lockscreen?!

    Hi there, I'm searching for an App, that shows my events on lockscreen, like WindowsMobile powered Smartphones use to do it... Is there an App that does this? I already searched for a long time but found nothing... Sincerely Leon07

  • When adding an attachment, the files I see in the finder-screen are not up to date

    I want to attach a file to a new message. When I attach it via the button in het message-screen a finder screen will open. The files in here are not up to date. For example, a just added file is not visible. When I brouwse to the same folder by using

  • Natting of Destination Address

    Is is possble to nat the destination address. What I am trying to do it change DNS servers. I would like to have traffic going to the old address be natted but traffic going to the new address not be natted. Finally if the DNS devices generates traff

  • Availibility check not happening after credit block is removed for order

    Hi All, When  we are removing the credit block on  a sales order through report RVKRED09, the availibility check is not performed again because the qty in sales order is not confirmed. As per my understanding when the report RVKRED09 is run, the sale