0 bytes when downloading my image

hi am geting 0 bytes when downloading my image,am not able to preview my image but its there in the database i can view it, am in jdeveloper 11g release 2 the code is
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.sql.SQLException;
import java.util.List;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.event.ValueChangeEvent;
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
import oracle.binding.AttributeBinding;
import oracle.binding.BindingContainer;
import oracle.binding.OperationBinding;
import oracle.jbo.Row;
import oracle.jbo.domain.BlobDomain;
import org.apache.commons.io.IOUtils;
import org.apache.myfaces.trinidad.model.UploadedFile;
import sms4200.ContentTypes;
public class ImageBean
    private RichCommandButton downloadButton;
    public ImageBean()
    public String cancel_action()
        BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
        // get an ADF attributevalue from the ADF page definitions
        AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("Id");
        Number catalogID = (Number) attr.getInputValue();
        OperationBinding opRollback = bindings.getOperationBinding("Rollback");
        opRollback.execute();
        if (!opRollback.getErrors().isEmpty())
            List<Throwable> lErrorList = opRollback.getErrors();
            for (Throwable lErr: lErrorList)
                FacesMessage msg =
                    new FacesMessage(FacesMessage.SEVERITY_ERROR, lErr.getMessage(), "");
                FacesContext.getCurrentInstance().addMessage(null, msg);
            return null;
        OperationBinding opSetParent = bindings.getOperationBinding("setCurrentRowWithKeyValue");
        opSetParent.getParamsMap().put("rowKey", catalogID);
        opSetParent.execute();
        if (!opSetParent.getErrors().isEmpty())
            List<Throwable> lErrorList = opSetParent.getErrors();
            for (Throwable lErr: lErrorList)
                FacesMessage msg =
                    new FacesMessage(FacesMessage.SEVERITY_ERROR, lErr.getMessage(), "");
                FacesContext.getCurrentInstance().addMessage(null, msg);
            return null;
        return "cancel";
    public void uploadFileValueChangeEvent(ValueChangeEvent valueChangeEvent)
        // The event give access to an Uploade dFile which contains data about the file and its content
        UploadedFile file = (UploadedFile) valueChangeEvent.getNewValue();
        // Get the original file name
        String fileName = file.getFilename();
        // get the mime type
        String contentType = ContentTypes.get(fileName);
        // get the current roew from the ImagesView2Iterator via the binding
        DCBindingContainer lBindingContainer =
            (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
        DCIteratorBinding lBinding = lBindingContainer.findIteratorBinding("SmsDocumentLinksView1Iterator");
        Row newRow = lBinding.getCurrentRow();
        // set the file name
        newRow.setAttribute("DocumentName", fileName);
        // create the BlobDomain and set it into the row
        newRow.setAttribute("DocumentImage", createBlobDomain(file));
        // set the mime type
        newRow.setAttribute("ContentType", contentType);
    private BlobDomain createBlobDomain(UploadedFile file)
        // init the internal variables
        InputStream in = null;
        BlobDomain blobDomain = null;
        OutputStream out = null;
        try
            // Get the input stream representing the data from the client
            in = file.getInputStream();
            // create the BlobDomain datatype to store the data in the db
            blobDomain = new BlobDomain();
            // get the outputStream for hte BlobDomain
            out = blobDomain.getBinaryOutputStream();
            // copy the input stream into the output stream
             * IOUtils is a class from the Apache Commons IO Package (http://www.apache.org/)
             * Here version 2.0.1 is used
             * please download it directly from http://projects.apache.org/projects/commons_io.html
            IOUtils.copy(in, out);
        catch (IOException e)
            e.printStackTrace();
        catch (SQLException e)
            e.fillInStackTrace();
        // return the filled BlobDomain
        return blobDomain;
    public void downloadImage(FacesContext facesContext, OutputStream outputStream)
        BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
        // get an ADF attributevalue from the ADF page definitions
        AttributeBinding attr = (AttributeBinding) bindings.getControlBinding("DocumentImage");
        if (attr == null)
            return;
        // the value is a BlobDomain data type
        BlobDomain blob = (BlobDomain) attr.getInputValue();
        try
        {   // copy the data from the BlobDomain to the output stream
            IOUtils.copy(blob.getInputStream(), outputStream);
            // cloase the blob to release the recources
            blob.closeInputStream();
            // flush the output stream
            outputStream.flush();
        catch (IOException e)
            // handle errors
            e.printStackTrace();
            FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getMessage(), "");
            FacesContext.getCurrentInstance().addMessage(null, msg);
    public void setDownloadButton(RichCommandButton downloadButton)
        this.downloadButton = downloadButton;
    public RichCommandButton getDownloadButton()
        return downloadButton;
}my pagedef is
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel" version="11.1.2.60.81" id="sms4200PageDef"
                Package="SmsFrontUI.pageDefs">
  <parameters/>
  <executables>
    <variableIterator id="variables"/>
    <iterator Binds="ViewObj1" RangeSize="25" DataControl="TaskFlowAppModuleDataControl" id="ViewObj1Iterator"/>
    <iterator Binds="sms4200_1" RangeSize="25" DataControl="TaskFlowAppModuleDataControl" id="sms4200_1Iterator"/>
    <iterator Binds="SmsDocumentLinksView1" RangeSize="-1" DataControl="sms4200ModuleDataControl"
              id="SmsDocumentLinksView1Iterator"/>
  </executables>
  <bindings>
    <attributeValues IterBinding="ViewObj1Iterator" id="IntegrationTypeName">
      <AttrNames>
        <Item Value="IntegrationTypeName"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="ViewObj1Iterator" id="Name">
      <AttrNames>
        <Item Value="Name"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="ViewObj1Iterator" id="LocalUpDirectory">
      <AttrNames>
        <Item Value="LocalUpDirectory"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="sms4200_1Iterator" id="IntegrationTypeName1">
      <AttrNames>
        <Item Value="IntegrationTypeName"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="sms4200_1Iterator" id="Name1">
      <AttrNames>
        <Item Value="Name"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="sms4200_1Iterator" id="LocalUpDirectory1">
      <AttrNames>
        <Item Value="LocalUpDirectory"/>
      </AttrNames>
    </attributeValues>
    <tree IterBinding="SmsDocumentLinksView1Iterator" id="SmsDocumentLinksView1">
      <nodeDefinition DefName="sms4200.SmsDocumentLinksView" Name="SmsDocumentLinksView10">
        <AttrNames>
          <Item Value="Id"/>
          <Item Value="DocumentImage"/>
          <Item Value="DocumentName"/>
          <Item Value="DitypId"/>
          <Item Value="SourceFileName"/>
        </AttrNames>
      </nodeDefinition>
    </tree>
    <action IterBinding="SmsDocumentLinksView1Iterator" id="CreateInsert" RequiresUpdateModel="true"
            Action="createInsertRow"/>
    <action id="Commit" RequiresUpdateModel="true" Action="commitTransaction" DataControl="sms4200ModuleDataControl"/>
    <attributeValues IterBinding="SmsDocumentLinksView1Iterator" id="DocumentImage">
      <AttrNames>
        <Item Value="DocumentImage"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="SmsDocumentLinksView1Iterator" id="ContentType">
      <AttrNames>
        <Item Value="ContentType"/>
      </AttrNames>
    </attributeValues>
    <attributeValues IterBinding="SmsDocumentLinksView1Iterator" id="DocumentName">
      <AttrNames>
        <Item Value="DocumentName"/>
      </AttrNames>
    </attributeValues>
  </bindings>
</pageDefinition>and my jsp xml page is
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces"
          xmlns:tr="http://myfaces.apache.org/trinidad" xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
        <af:document title="sms4200.jspx" id="d1">
            <af:messages id="m1"/>
            <af:form id="f1" usesUpload="true">
                <af:panelStretchLayout topHeight="211px" id="psl1" inlineStyle="width:1338px; background-color:Navy;">
                    <f:facet name="top">
                        <af:panelHeader text="Sms Intergration Sources" id="ph1">
                            <f:facet name="context"/>
                            <f:facet name="menuBar"/>
                            <f:facet name="toolbar"/>
                            <f:facet name="legend"/>
                            <f:facet name="info"/>
                            <af:panelStretchLayout id="psl2" inlineStyle="height:178px; width:1030px;" topHeight="22px"
                                                   endWidth="589px" startWidth="55px" bottomHeight="33px">
                                <f:facet name="end">
                                    <af:panelHeader text="Office" id="ph2"
                                                    inlineStyle="width:900px; background-color:Navy;">
                                        <f:facet name="context"/>
                                        <f:facet name="menuBar"/>
                                        <f:facet name="toolbar"/>
                                        <f:facet name="legend"/>
                                        <f:facet name="info"/>
                                        <af:panelFormLayout id="pfl3" inlineStyle="background-color:Navy;" rows="1">
                                            <f:facet name="footer"/>
                                            <af:inputText label="#{bindings.Name1.hints.label}"
                                                          required="#{bindings.Name1.hints.mandatory}"
                                                          columns="20"
                                                          maximumLength="#{bindings.Name1.hints.precision}"
                                                          shortDesc="#{bindings.Name1.hints.tooltip}" id="it2">
                                                <f:validator binding="#{bindings.Name1.validator}"/>
                                            </af:inputText>
                                            <af:inputText
                                                          label="#{bindings.LocalUpDirectory1.hints.label}"
                                                          required="#{bindings.LocalUpDirectory1.hints.mandatory}"
                                                          columns="20"
                                                          maximumLength="#{bindings.LocalUpDirectory1.hints.precision}"
                                                          shortDesc="#{bindings.LocalUpDirectory1.hints.tooltip}"
                                                          id="it3">
                                                <f:validator binding="#{bindings.LocalUpDirectory1.validator}"/>
                                            </af:inputText>
                                        </af:panelFormLayout>
                                    </af:panelHeader>
                                </f:facet>
                                <f:facet name="top">
                                    <af:inputText value="#{bindings.IntegrationTypeName1.inputValue}"
                                                  label="#{bindings.IntegrationTypeName1.hints.label}"
                                                  required="#{bindings.IntegrationTypeName1.hints.mandatory}"
                                                  columns="#{bindings.IntegrationTypeName1.hints.displayWidth}"
                                                  maximumLength="#{bindings.IntegrationTypeName1.hints.precision}"
                                                  shortDesc="#{bindings.IntegrationTypeName1.hints.tooltip}" id="it1">
                                        <f:validator binding="#{bindings.IntegrationTypeName1.validator}"/>
                                    </af:inputText>
                                </f:facet>
                            </af:panelStretchLayout>
                        </af:panelHeader>
                    </f:facet>
                    <f:facet name="center">
                        <!-- id="af_one_column_header_stretched"  -->
                        <af:decorativeBox theme="dark" id="db1" inlineStyle="width:1050px; background-color:Navy;">
                            <f:facet name="center">
                                <af:panelGroupLayout layout="scroll" id="pgl3" inlineStyle="background-color:Navy;">
                                    <af:panelStretchLayout id="psl3" inlineStyle="width:1008px; height:514px;"
                                                           topHeight="404px" startWidth="0px">
                                        <f:facet name="center">
                                            <af:panelStretchLayout id="psl5" endWidth="742px" startWidth="60px">
                                                <f:facet name="bottom"/>
                                                <f:facet name="center"/>
                                                <f:facet name="end"/>
                                            </af:panelStretchLayout>
                                        </f:facet>
                                        <f:facet name="start">
                                            <af:panelLabelAndMessage label="#{bindings.DocumentImage.hints.label}"
                                                                     id="plam3">
                                                <af:spacer width="10" height="10" id="s2"/>
                                            </af:panelLabelAndMessage>
                                        </f:facet>
                                        <f:facet name="top">
                                            <af:panelStretchLayout id="psl4" startWidth="232px" endWidth="209px"
                                                                   bottomHeight="13px" topHeight="11px">
                                                <f:facet name="center">
                                                    <af:panelFormLayout id="pfl4">
                                                        <f:facet name="footer"/>
                                                        <af:inputFile label="Select Image" id="if1" autoSubmit="true"
                                                                      valueChangeListener="#{ImageBean.uploadFileValueChangeEvent}"/>
                                                        <af:commandButton actionListener="#{bindings.CreateInsert.execute}"
                                                                          text="Restart Load Image Process"
                                                                          disabled="#{!bindings.CreateInsert.enabled}"
                                                                          id="cb2"/>
                                                        <af:commandButton actionListener="#{bindings.Commit.execute}"
                                                                          text="Save"
                                                                          disabled="#{!bindings.Commit.enabled}"
                                                                          id="cb3"/>
                                                        <af:inputText value="#{bindings.ContentType.inputValue}"
                                                                      label="#{bindings.ContentType.hints.label}"
                                                                      required="#{bindings.ContentType.hints.mandatory}"
                                                                      columns="10"
                                                                      maximumLength="#{bindings.ContentType.hints.precision}"
                                                                      shortDesc="#{bindings.ContentType.hints.tooltip}"
                                                                      id="it6" partialTriggers="if1">
                                                            <f:validator binding="#{bindings.ContentType.validator}"/>
                                                        </af:inputText>
                                                        <af:outputText value="#{bindings.DocumentImage.inputValue ne null? 'available' : 'not available'}"
                                                                       id="ot3" partialTriggers="if1"/>
                                                        <af:commandButton text="Download Data" id="cb4"
                                                                          visible="#{bindings.DocumentImage.inputValue ne null}"
                                                                          binding="#{ImageBean.downloadButton}"
                                                                          >
                                                            <af:fileDownloadActionListener contentType="#{bindings.ContentType.inputValue}"
                                                                                           filename="#{bindings.DocumentName.inputValue}"
                                                                                           method="#{ImageBean.downloadImage}"/>
                                                        </af:commandButton>
                                                    </af:panelFormLayout>
                                                </f:facet>
                                                <f:facet name="start">
                                                    <af:panelFormLayout id="pfl1" labelAlignment="top">
                                                        <f:facet name="footer"/>
                                                        <af:inputText label="File from PC to be Transfered" id="it4"/>
                                                    </af:panelFormLayout>
                                                </f:facet>
                                                <f:facet name="end">
                                                    <af:panelFormLayout id="pfl2" labelAlignment="top">
                                                        <f:facet name="footer"/>                                                     
                                                        <af:inputText value="#{bindings.DocumentName.inputValue}"
                                                                      label="File Transfered to Database"
                                                                      required="#{bindings.DocumentName.hints.mandatory}"
                                                                      columns="20"
                                                                      maximumLength="#{bindings.DocumentName.hints.precision}"
                                                                      shortDesc="#{bindings.DocumentName.hints.tooltip}"
                                                                      id="it7" partialTriggers="if1">
                                                            <f:validator binding="#{bindings.DocumentName.validator}"/>
                                                        </af:inputText>
                                                    </af:panelFormLayout>
                                                </f:facet>
                                            </af:panelStretchLayout>
                                        </f:facet>
                                    </af:panelStretchLayout>
                                </af:panelGroupLayout>
                            </f:facet>
                        </af:decorativeBox>
                    </f:facet>
                </af:panelStretchLayout>
            </af:form>
        </af:document>
    </f:view>
</jsp:root>

duplicate of {thread:id=2397056}
@Tshifhiwa you should keep all in one thread. If you feel that you need to open a new thread you should close the old one and put a link into the new one (this one) for reference.
Timo

Similar Messages

  • UNICODE Problem when Download to TXT/ASC file.

    Dear Experts,
    Due to the Unicode system takes each chinese character as a byte, the field(10) can take 10 Chinese Characters, not like before only 5 characters allowed.
    The problem is when the data is downloaded to a txt file, the field ,length 10, contained Characters, is displayed 10 chinese characters(that's 20 bytes in txt file). It causes the displayed field length are varied between the definition length of field and the actual output.
    ex.
    102’†•¶ŽšŒ^‘ª00012345       --> the output I actully want.
    102’†•¶ŽšŒ^‘ª     000012345  --> unicode makes this in txt file, lenth 10, fill 5 characters but still leave 5 space.
    How to make system take the chinese characters as 2 bytes when download....or any other better idea for this?
    anyone who can solve this, that's life saving..!!!
    thanks in advnace.

    Sorry, the chinese chararcters cannot display properly,
    so just assume each '@' as a chinese character. Five chinese Characters should occupy whole field length(10),
    but Unicode makes it like line 2, still leave 5 space culomn behind(using  to represent the empty column).
    ex.
    102@@@@@00012345      --> the output I actully want.
    102@@@@@000012345 -- the actual output.
    thanks.
    Message was edited by: Ching Heng Ling

  • UNICODE Problem when Download/Upload from ASC file.

    Due to the Unicode system takes each Chinese character as a byte, the field(10) can take 10 Chinese Characters, not like before only 5 characters allowed.
    The problem is when the data is downloaded to a txt file, the field ,length 10, contained Characters, is displayed 10 Chinese characters(that's 20 bytes in txt file). It causes the displayed field length are changed.
    ex.
    text = '12@@@@@00012345'.
    text = text+0(12) --> display '12@@@@@' the output I actually want.
    text = text+0(12) --> display '12@@@@@00012' Unicode makes this in txt file,
    the Chinese characters cannot display properly, so just assume each '@' as a Chinese character.
    How to make system take the Chinese characters as 2 bytes when download....or any other better idea for this?
    anyone who can solve this, thanks in advance.

    Hi Prashant and Uwe,
    Thanks for your help. I used 'GUI_UPLOAD', but it still doesn't work.
    'Text1' still equal to '12@@@@@00012' , not '12@@@@@'
    My test problem as below:
    data: l_file type string.
            text1(20) type c.
    DATA: BEGIN OF T_FICH OCCURS 0,
             LIGNE(5000),
          END OF T_FICH.
      l_file = P_SOURCE.
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
                FILENAME            = l_file
               FILETYPE            = 'ASC'
               HAS_FIELD_SEPARATOR = 'X'
               Read_By_Line        = 'X'
                CODEPAGE            = '8400'
           TABLES
                DATA_TAB            = T_FICH
           EXCEPTIONS
                OTHERS              = 99.
    LOOP AT T_FICH.
       text1 = T_FICH-LIGNE+0(12).
    ENDLOOP.
    Could you give me some advise about this?

  • Video file works when downloaded in IE but not when downloaded in FF

    I am constantly being sent QuickTime MOV files from a client via YouSendIt. Whenever I download the file via Firefox, it appears to download fine but it will not play the video. I get the error message "Error -2048: Couldn't open the file because it is not a file that QuickTime understands." Yet whenever I download the exact same file to the exact same desktop and try to open it with the exact same QuickTime player, but using Internet Explorer to click the download link (and handle the downloading, I suppose)... it works fine and the video plays perfectly. WTF?
    All other variables are identical. The only difference here is that the file is unusable when downloaded via FireFox yet perfectly fine when downloaded via Internet Explorer. Why? How is this possible?
    The only difference I can see on my desktop is that the version of a test video is 39,305,216 bytes when downloaded using FF, yet the exact same file is 39,370,752 bytes when downloaded using IE. I don't know if that's relevant information but how is this even possible since they are both downloads of the exact same file? Shouldn't both browsers neither add nor remove data from the file itself, so it should be the exact same file? Yet it's obviously different in some way, and apparently different in a way that affects the ability of QuickTime to play the file. Why would this be?

    If it works in IE but not FF, then it has nothing to do with the mp3s. More likely it's because of the HTML on the page.
    To start, page is missing DOCTYPE declaration... a MAJOR problem. The DOCTYPE declares which set of rules the browser will use to display the page. Without it, different browsers go crazy or do not work at all.
    http://www.w3schools.com/tags/tag_DOCTYPE.asp
    Validate the html code here:
    http://validator.w3.org/
    You will have to fix all the errors if you want this to work in all browsers.
    Best wishes,
    Adninjastrator

  • Attempting to upgrade to Firefox 3.6 (using an ancient Mac OS 10.3), but received an error message (corrupt image file) when downloading - any way to correct this with my current OS?

    I'm currently trying to update a few programs on my good old (VERY old) Mac Powerbook, but I ran into an error when downloading Firefox version 3.6...I'm currently running Mac OS X 10.3.9, which isn't compatible with the most recent versions of Firefox (or anything, for that matter), but it should still allow an upgrade of version 3.6; however, once the file finished downloading, an error message popped up indicating there's a corrupt image file. Is there any way to work around/correct this problem, or am I stuck with my old version of Firefox until I bite the bullet and upgrade my OS??? Any help is greatly appreciated!!

    Firefox 3.6 requires at least OS X 10.4, the last version of Firefox that runs on OS X 10.3.9 is Firefox 2.0.0.20 available from https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.20/mac/en-US/

  • When trying to upload pictures from my camera I get this message although I have uploaded from the same camera in the pastiPhoto cannot import your photos because there was a problem downloading an image.

    When trying to upload pictures from my camera I get this message although I have uploaded from the same camera in the past, "iPhoto cannot import your photos because there was a problem downloading an image."

    Can you access the images with Image Capture (in your Applications Folder) ?

  • I am importing videos from my canon sl1 to my macbook when i use iphoto is says "iPhoto cannot import your photos because there was a problem downloading an image." and when i use image capture it says "An error occured while importing. The item 'MVI_1040

    I am importing videos from my canon sl1 to my macbook air when i use iphoto is says "iPhoto cannot import your photos because there was a problem downloading an image." and when i use image capture it says "An error occured while importing. The item ‘MVI_1040'' Thanks in advance

    Can you access the images on the phone with Image Capture (in the Applications Folder) ?

  • I just upgraded to ilife iphoto 09. Now when I alter images in iphoto the iphoto 8.1.2 program freezes up. I have downloaded all the latest updates from apple, but nothing seems to correct this.  Anyone else experience this?

    I just upgraded to ilife iphoto 09.  Now when I alter images in iphoto 8.1.2 the program freezes up. I have downloaded all of the latest updates from apple, but nothing seems to correct this problem.  Has anyone else experienced this?
    Thanks for your reply,
    LuAnn
    <Email Edited by Host>

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.

  • Noise Ninja Problem when downloading images from Epson P-3000 hard drive

    I've just downloaded JPEG images from my Epson P-3000 hard drive and when I try to sharpen the images using Noise Ninja plug-in in Aperture I get the following error message: Editing Error. This image cannot be rendered for editing because Aperture does not support the image format. I don't have any issues using Noise Ninja with other images (using latest Aperture version) and this is the first time i've downloaded images from the Epson rather than my memory card. I'm wondering if the issue is related to the Epson. The metadata of the image in Aperture confirms that the image is a JPEG so I'm not sure what's going on.

    I've just downloaded JPEG images from my Epson P-3000 hard drive and when I try to sharpen the images using Noise Ninja plug-in in Aperture I get the following error message: Editing Error. This image cannot be rendered for editing because Aperture does not support the image format. I don't have any issues using Noise Ninja with other images (using latest Aperture version) and this is the first time i've downloaded images from the Epson rather than my memory card. I'm wondering if the issue is related to the Epson. The metadata of the image in Aperture confirms that the image is a JPEG so I'm not sure what's going on.

  • I want to download and image from the url and image is in byte format

    hi
    i want to download the image from the url:
    http://www.tidelinesonline.com/mobile/j2me_v1?reqType=imageJoin&imageCount=1&month=1&day=1&year=2008&id=1&imageWidth=230&imageHeight=216&imageDepth=8&imageUnits=feet&imageType=JPG&msisdn=456
    can any one help me to do this i need to finish this today plz help me.
    first 5 character 09593 is the length of the image we need to substract image length from total length.
    thanks in advance
    M.Raj
    Edited by: Mraj.Bangalore on May 15, 2008 12:01 AM
    Edited by: Mraj.Bangalore on May 15, 2008 12:01 AM

    hi
    thanks for the reply,
    that works only if .png file is there in the path.
    i worked it out, it is working fine now
    try
                   httpConn = (HttpConnection)Connector.open(url);
                   is=httpConn.openInputStream();
                   responseCode = httpConn.getResponseCode();
                   if(httpConn.getResponseCode() == 200)
                             ByteArrayOutputStream bStrm = null;
                             byte[] data = new byte[512];
                             int contentLen = httpConn.getHeaderFieldInt("Content-Length", 0);
                             if(contentLen > 0)
                                  response = new byte[contentLen];
                             else
                                  bStrm = new ByteArrayOutputStream();
                             int count = 0, tmp =0;
                                  while ((count = is.read(data)) >= 0)
                                       if( contentLen > 0 )
                                            for(int i=0;i<count && tmp+i < contentLen;i++)
                                                 response[tmp+i] = data;
                                            tmp += count;
                                       else
                                            bStrm.write(data, 0, count);
    //                                    if( aborted)
    //                                         break;
                                  data = null;
                                  System.gc();
                                  if( contentLen <= 0 )
                                       response = bStrm.toByteArray();
                                       bStrm.close();
                                       bStrm = null;
                                       System.gc();                                   
                        else
    //                          main.showAlert("ERROR","Connection failed.Please access again later");
    //                          main.changeToMain();
              catch(Exception e){
                   response = null;
                   responseCode = 0;
    //                main.showAlert("ERROR","Connection failed.Please access again later");
    //                main.changeToMain();
              catch(OutOfMemoryError e){
    //                main.showAlert("ERROR","Not enough memory, please disable some apps or delete files and try again.");
    //                main.changeToMain();
              finally
                   System.out.println("Before Creation"+response.length);
                   img = Image.createImage(response, 5, response.length-5);
                   System.out.println("After Creation");
                   CanvasImageFile canvas = new CanvasImageFile(this);
                   midlet.display.setCurrent(canvas);
                   try
                        if( is != null )
                             is.close();
                             is=null;
                   catch(Exception ex){
    //                     main.showAlert("ERROR","Connection failed.Please access again later");}
                             if( httpConn != null )
                             try {
                                       httpConn.close();
                                  } catch (IOException e) {
                                       // TODO Auto-generated catch block
                                       e.printStackTrace();
                             httpConn=null;

  • HT1386 When trying to down load photos I get this message: iPhoto cannot import your photos because there was a problem downloading an image. What should I do to restore syncing my phone?

    I can't sync my iPhone 4 photos with my deck top. It all just stoped working. When trying to sync photos I get the following message:
    iPhoto cannot import your photos because there was a problem downloading an image.
    What do I need to do to get the syncing process back to normal?

    Hi there obywon!
    I have an article for you that can help you find some other ways to import those pictures from your iPhone onto your computer. You should try a couple of different programs that would import the photos into your computer. This first article can tell you the different programs that you will want to try when attempting to import photos:
    iOS: Importing personal photos and videos from iOS devices to your computer
    http://support.apple.com/kb/ht4083
    If you are still having issues with importing those photos, you will want to see this article for next steps on resolving this issue:
    iOS: Unable to import photos to computer
    http://support.apple.com/kb/ts3195
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • When downloading images to photoshop all images are labelled as img.even the RAW ones. How do I change this.

    When I download the images from my Canon 70D into Photoshop CC all the images are labeled as IMG, even the RAW ones. How do I get the images automatically labeled as RAW?

    Hate to ask the obvious, but do you have your Canon 70D set to save both RAW+jpg?
    On your computer do you have 2 files for each photo, but the file size is much larger for one of them?
    Are you using ANY software to download the pics from your camera to your hard drive. If so, check the setting to make sure they aren't  converting Raw CR2 to jpgs automatically.
    The best procedure for transferring is to buy a card reader for a few bucks.
    Remove your memory card from the camera and insert into card reader.
    Copy or Drag your files to your hard drive.
    After this is done. remove the card and replace into your camera
    The reason for this last procedure is to make sure you don't accidently open the image from the card reader and then attempt to save it not realizing the computer is trying to save it back to the card.

  • When someone other than myself downloads an image from my web album, a dynamically generated file name replaces the original file name.  How I can prevent the original file name being replaced during the downloading process?

    When someone other than myself downloads an image from my web album, a dynamically generated file name replaces the original file name.  How I can prevent the file name being changed during this downloading process?

    Hi Glenyse,
    Here are my steps.
    1.  I upload multiple image (jpg) files onto my photo album.
    2.  I select the "sharing" by email option for this album.
    3.  I enter the recipient's email address.
    4.  The recipient receives my message and clicks on the link.
    5.  The recipient accesses my photo album and clicks on one of the images.
    6.  The image opens up to its own screen.
    7.  The recipient selects the "download" and then save file option.
    Here is the part I do not understand.  For some reason, during this "download" process, the original name which I have given to the file is replaced by different name.  So I was hoping that someone knows how to prevent the file name from being changed during the "download and save" process.
    Much appreciated if you can help me find a solution to this problem.
    Mary  

  • Using iMovie 09, when downloading video fromm Samsung HMX- H106SN, The video image is stretched. Anyone have an idea for a fix?

    Using iMovie 09, when downloading video from Samsung HMX- H106SN, the video image in iMovie is stretched. I see no obvious way to adjust this in iMovie.  When played on HDTV directly from camera using HDMI, the video image is fine.  Is this a compatibility issue? Anyone have an idea for a fix?
    Thnx, olive.c

    Thanks guys! Appreciate the help. Unfortunately I'm just not getting the same quality/file size/performance that I'm getting from the traditional Apple TV export option.
    I did however find what I think might even be a better solution for anyone using a mono wireless mic system like myself... use what's called a 3.5mm stereo jack to 3.5mm mono plug adapter. They're only like $5 and not only convert the audio so it comes out of both speakers, but this is probably a better option cause now in post production (iMovie) the other tracks like music etc... are still in stereo.
    Here's a link to the adapter on Tiger Direct... http://www.tigerdirect.com/applications/searchtools/item-Details.asp?EdpNo=93027 7&sku=C184-03174&srkey=3.5mm%20mono%20plug%20to%203.5mm%20stereo%20socket
    Hope this helps!
    Bryan

  • Is anyone else having problems with large files, such as installation images, becoming corrupted when downloaded in Mavericks using Safari?

    I am finding that when I try to download a disk image file, such as Office 2011, it reads invalid checksum, is corrputed and will not install. I tried to download it several times and even unchecked in the Disk Utility Preference Pane to verify checksums. The way I solved the problem, was to go to my Windows Machine and download the image, put it on a USB flash drive and install it on my Mac from the stick. Not a proper solution, but it did work. Has anyone out there had this problem? This is applying to any large .dmg files not just Office 2011.

    I'm having exactly the same problem with the dmg file for Office 2011, tried downloading from my windows machine with no luck, still having the invalid checksum message.

Maybe you are looking for