Help in Create PJC to get image from  Scanner

Help
I'm tring to use JTwain java library to scan an image directly to the form ,
i got the DLL and the java files and use it to run and test the Demo program from dos
It works , then i tried to make a PJC to use that class
the PJC Bean Extends the VImage class With 2 properties
a SET Property SELECT_SOURCE
a GET Property ACQUIRE
I'm trying to run those property's function from 2 Buttons in the form , not in the initialization
and create a Bean Area in my Form to use that class,
the classes compiled and made a JAR file in <DEVSUITE_HOME>/forms/java directory
After the compilation of the PJC , deployment and add the JAR file to formsweb.cfg.
when i'm tried to run my form
the form give me that error "FRM-92100" before it's load.
my Bean Code as Follow
package net.javajeff.jtwain;
import java.awt.Image;
import oracle.forms.handler.IHandler;
import oracle.forms.ui.CustomEvent;
import oracle.forms.properties.ID;
import oracle.forms.ui.VImage;
public class MYVImage extends VImage
static IHandler mHandler;
// SET
protected static final ID SELECT_SOURCE = ID.registerProperty("SELECT_SOURCE");
// GET
protected static final ID ACQUIRE = ID.registerProperty("ACQUIRE");
public MYVImage()
try
jbInit();
catch(Exception e)
e.printStackTrace();
public boolean setProperty(ID property, Object value) {
if(property == SELECT_SOURCE) {
JTwain JT =new JTwain();
try{JT.selectSourceAsDefault();}
catch(Exception e){}
return true;}
return true;
public Object getProperty(ID property) {
JTwain JT =new JTwain();
if (property == ACQUIRE)
try{
this.setImage(JT.acquire());
catch(Exception e){}
} else
return super.getProperty(property);
return null;
private void jbInit() throws Exception
The Jtwain Code is working in dos ,it returns Java.awt.image from The ACQUIRE function
i used it in the bean to set it's image
the Twain class code
package net.javajeff.jtwain;
import java.awt.Image;
* This class provides the "glue" to connect the Java side of JTWAIN to the
* C++ side. Methods exist to initialize JTwain and interact with TWAIN.
* @author Jeff Friesen
public class JTwain
* Initialize JTwain. Initialization succeeds if System.loadLibrary() is
* able to find the jtwain library, if the jtwain library is able to find
* TWAIN_32.DLL, and if TWAIN_32.DLL contains the DSM_Entry() function. A
* messagebox is displayed if either TWAIN_32.DLL or DSM_Entry() can't be
* found.
* IMPORTANT: This method must be called before any other method. If this
* method returns false, do NOT call any other method.
* @return true if JTwain successfully initialized, otherwise false
public static boolean init ()
try
System.loadLibrary ("jtwain");
return true;
catch (UnsatisfiedLinkError e)
return false;
* Display the default source's dialog box to let the user configure that
* source. If the user clicks the Scan button, acquire one image from the
* default source.
* @return Image that describes the acquired image, otherwise null if the
* user clicked the Cancel button on the default source's dialog box
* @throws JTwainException if something goes wrong
public static native Image acquire () throws JTwainException;
* Select a source name from the source manager's dialog box. If the user
* clicks the Ok button, the highlighted source name becomes the new
* default source.
* @throws JTwainException if something goes wrong
public static native void selectSourceAsDefault () throws JTwainException;
Please help, i need to scan an image directly to the form image item
if there is another way somebody heeeelp

here's a snippet of code
-- create your type in Oracle via sqlplus
     CREATE OR REPLACE TYPE STRING_ARRAY         AS VARRAY(999) OF VARCHAR2(128);
// in your java code
String[] arParam = { "FOO", "BAR" };
oracle.sql.ArrayDescriptor arDesc = ArrayDescriptor.createDescriptor(
"<yourSchemaOwnerGoesHere>" + "." + "STRING_ARRAY",
<yourConnectionObject> );
ARRAY oracleArray = new ARRAY(arDesc, <yourConnectionObject>, arParam );
                            <yourPreparedOrCallableStatement>.setARRAY(1, oracleArray);
or use registerOut if you want to get a return value

Similar Messages

  • Rich text box used in Infopath Form not displaying option to get images from Computer

    Hello,
    We have used "Rich text box" in Infopath Form which is not displaying option to get images from Computer.
    Options available are : From Address, From SharePoint
    But if we Rich text box in list, then it works fine with "From Computer" option.
    can you please help me out to get this option.
    Thanks in advance.
    REgards,
    Jayashri

    Hi,
    From your description, there is no “From Computer” option to get images with rich text box in InfoPath form.
    Per my knowledge, by design there are “From Address” and “From SharePoint” options without “From Computer” option in rich text box in InfoPath form. As a workaround, you can develop a custom InfoPath Rich Text box to do it.
    About developing a custom InfoPath control, I suggest you create a new thread on the forum “Visual Studio Tools for Office”, more experts will assist you with InfoPath development.
    Visual Studio Tools for Office:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=vsto&filter=alltypes&sort=lastpostdesc
    Thanks,
    Dean Wang

  • Error while getting  image from database in SUP using ios?

    Hi All,
      Im developing native iOS application using sup 2.1.3 . Im getting error While retrieving  image from SUP database. Here i'm trying to get image from database and show in imageView.can any one help me how to fix this issue?
    In database image datatype is  'LONG Binary' .
    My table Schema:
    CREATE TABLE dba.ImagesTable (
    RowID INT NOT NULL,
    ImageName VARCHAR(20) NOT NULL,
    PhotoData LONG BINARY NOT NULL,
    IN SYSTEM
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA137 PRIMARY KEY CLUSTERED (RowID)
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA138 UNIQUE NONCLUSTERED (RowID)
    in Xcode:
                [SUP107SUP107DB synchronize];
                SUP107ImagesTable *imgTable =[[SUP107ImagesTable alloc]init];
                SUP107ImagesTableList *list =[SUP107ImagesTable findAll];
                SUP107ImagesTable * oneRecord =[list objectAtIndex:0];
                NSLog(@"rowId:%d---imageName:%@---photoData:%@---photoLenght:%d",oneRecord.rowID,oneRecord.imageName,oneRecord.photoData,oneRecord.photoDataLength);
                NSData *tempData =[[NSData alloc]init];
                SUPBigBinary *responseBinaryData = (SUPBigBinary *)oneRecord.photoData.value;
                @try {
                    [responseBinaryData openForWrite:[oneRecord.photoData length]];
                    [responseBinaryData write:tempData];
                @catch (NSException *exception) {
                    NSLog(@"exception: %@",[exception description]);
                UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(50,50,100,100)];
                [self.window addSubview:imgView];
                UIImage * tempImage =[UIImage imageWithData:tempData];
                imgView.image = tempImage;
                [responseBinaryData close];
    Error Log:
    2014-04-02 18:42:15.150 SUP102[2873:70b] rowId:1---imageName:Apple---photoData:SUPBigBinary: column=c pending=1 allow_pending_state=1 table=sup107_1_0_imagestable mbo=0x0 key=(null) ---photoLenght:90656
    Printing description of responseBinaryData:
    <OS_dispatch_data: data[0xc891b40] = { leaf, size = 90656, buf = 0x1213a000 }>
    2014-04-02 18:42:33.304 SUP102[2873:70b] -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] exception: -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.306 SUP102[2873:70b] [ERROR] [AppDelegate.m:497] NSInvalidArgumentException: -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40

    This thread talks about uploading image to SAP from a IOS device,Sending Image to SAP via iOS Native app (SUP 2.1.3)
    Midhun VP

  • How can I create a java.awt.Image from ...

    Hi all,
    How can I create a java.awt.Image from a drawing on a JPanel?
    Thanks.

    JPanel p;
    BufferedImage image =
        new BufferedImage(p.getWidth(), p.getHeight, BufferedImage.TYPE_INT_RGB);
    Graphics2D g = image.createGraphics();
    p.paint(g);
    g.dispose();

  • How do I get images from Aperture into print shop for mac?

    Friends,
    I have Print Shop for Mac and Aperture. How do I get images from Aperture into Print Shop? I'musing managed images with previews. Is there any option besides exporting to the desktop and importing?
    Thanks!
    Steve

    if you have previews turned on in Aperture and they're all genereated, you can simply drag-n-drop them into any application (just about). drag-n-drop is essentially the same as copy/paste as long as the application is setup to accept "drops" onto its windows.
    otherwise, if you're running Leopard (10.5) as your version of Mac OS X, when you import (or whatever it is in PrintShop), you should get a file selection dialog. from here, scroll down the left-hand side bar set of icons. near the bottom is a group called "Media". click on the triangle to open the group, choose Photos, and from here you should see an Aperture icon. click this and you'll see your whole library (or at least the portion of it that you have previews generated for. select the photo you want and viola!
    scott

  • Import Image from scanner to database Direct ..

    can any Colleagues help me ..
    how can i Import Image From Scanner directly
    if anyone can descuss code and how can i do that
    thank for all Colleagues .......

    You cannot.. unless you are prepared to get your hands dirty writing code to integrate a scanner API into Oracle.
    Oracle has a feature called extproc. This allows you to define external "procedures" - these procedures are for example shared object libraries (Linux/Unix) or dynamic link libraries (Windows). A scanner API will be typically implemented by its driver as a shared object/DLL. Which means it is callable from within PL/SQL.
    It may however not be usable - extproc does not support callbacks, does not own a window or process handle, and so on.
    In which case you may need to wrap the DLL into a custom DLL that implements callbacks. perhaps create a hidden window if a window handle is needed, and so on.
    In other words, this is not a trivial thing. You need to know more than just a bit about o/s side (systems) programming.
    You should also ask yourself why you want to do this. Architecturally wiring a scanner into Oracle via PL/SQL and an extproc interface make absolutely no sense at all.
    Especially since operator input/control is required to physically manage device... That is on the very opposite side of the Oracle server spectrum. That is clearly a client function to interact with such a device and not a server function.

  • Read image from scanner

    i want to interact with hardware(scanner) in java
    i want to read image and store in database
    for this
    1.) i want to read image from scanner
    2.) how do i start scanner process
    from where i gonna start
    plz help me to interact with hardware

    Hi, I have faced a similar problem and solved it using the morena api http://www.gnome.eu/Twain/examples/studio.html
    Problem is the scanner works fine with TWAIN, but with SANE, it is totally failing. There is a permanent connection refusal form the scanner ip whenever
    i try to use a network scanner. I am not sure how to solve it. If anyone has solved this please revert back.
    Regards,
    Anthony

  • Want to scan image from scanner by oracle forms

    Hi all,
    I am using oracle developer suite 10g, oracle application server 10g and oracle database 10g. I can load image or picture in forms by webutil from a location. But now i need that i have a button on the form and when i click then it will scan image from the scanner installed on that machine. I do not khow the way. Pls help me.
    Message was edited by:
    Tarik_kuet

    I have made a bean for scanning images..
    you can scann images..
    convert scanned images to pdf
    Store images,pdf to local disk
    Store images or pdf to database using servlet and HTTPClient library ..
    (if someone need source please send me a mail to: [email protected])
    look here: Need to read image from scanner
    Edited by: user651799 on Nov 26, 2008 7:46 AM

  • Elements freezing on acquire image from scanner

    When using a Neat NM-1000 scanner and I acqire image from scanner the program loads the Neat software to scan the image and runs the photo through the scanner and then freezes the software and will not allow me to continue. Is there and update I need or some settings I should make somewhere in the software?

    Thanks for your response.
    Can you please try scanning once outside of Oragnizer and import the scanned image manually in EO?
    Thanks
    Andaleeb

  • Need to read image from scanner

    Hi,
    I wnat to load image from scanner directly into forms. Then save it into table.
    Shahin

    Here we are..
    This is my "bean" for scanning over twain driver or SANE (linux)..
    I have used morena twain drivers (JNI), apache httpclient library for java (i need it for http communication between forms and database) and Itex pdf library for java.
    The bean has three options..
    1. you can select the twain device and start to scan
    2. you can view scanned images
    3. you can generate PDF from scanned images and store it to local disk or database..
    For example how the form look like:
    !http://freeweb.siol.net/peterv6i/scan1.jpg!
    On the first form you can start a new scann or just delete the temporary files in the local folder (user temporary folder).
    After you press the "scann" button the twain dialog apear
    !http://freeweb.siol.net/peterv6i/scan2.jpg!
    The dialog of twain device will startup. Here you can set everythig you can (scann area, colors, dpi ...)
    !http://freeweb.siol.net/peterv6i/scan3.jpg!
    The scanned images are transfered on local disk (temp folder). Every scanned images got timestamp value as name of the image (on the picture this are located in the select list)
    !http://freeweb.siol.net/peterv6i/scan4.jpg!
    If you click on the item the scanned image will aper on the screen
    !http://freeweb.siol.net/peterv6i/scan5.jpg!
    The last screen is for saving / generate a pdf from the array of images or image.
    !http://freeweb.siol.net/peterv6i/scan6.jpg!

  • Get Photo From Scanner

    I keep getting a pop-up to "Get Photo From Scanner".  I do not want to scan a picture.  I hit cancel and it just comes right back.  I can't do anything in photoshop because the message keeps popping up and taking over the screen.  It also occasionally takes over from other programs.  I am getting very frustrated!  Is there a way to truly cancel the import or turn off this feature?
    Thanks!

    It also occasionally takes over from other programs.
    This sounds like it isn't PSE that is causing this. Did you actually start a scan at some point? Have you checked your scanner software to see if there's a scan waiting for you?

  • Create a single tall image from a multi-page pdf file

    I would like to take a multi-pake pdf file, and have all of the pages "appended" from top to bottom edge to create a single tall image. I am a teacher, and I currently do this by hand, I am then able to annotate the entire page and croll down an entire document inside of Photoshop.
    Here is an example: I have a pdf with 4 pages. Currently I open the pdf in PS, I end up with 4 images; I adjust the vertical canvas size of one of the images to be 4 times it's original size, then one-by-one I copy the contents of each image to that new tall image and move that layer vertically below the previous one. So the result is say a 1024x6400 pixel image.
    I would like to be able to just open the pdf with a script and get this all done in one step.
    Any help is appreciated.

    Thanks again c.pfaffenbichler. I had most of it worked out in my own way before you got back to me, but I wasn't able to get the final naming part down.
    Like I said, I am a math teacher, and I use photoshop as my whiteboard, and draw with a graphics tablet. So I can print to pdf from any program, now I can import any document into photoshop basically to write on it. So this is wonderful. I have never seen another teacher use PS as a whiteboard in class in this way, so I am most likely the only person in my county or state that would need such a script.
    After I got everything worked out, I added some things to the script. Some of my colleagues will use my files as a whiteboard if I send it to them as a tall single page pdf that they can scroll down and write over; so they don't need photoshop. So I have scripted in the saving of that pdf as well. Here are my changes; most of what I changed is in the section commented MY WORK.
    // opens all pages of pdfs cropped to trimbox with set settings and arranges them;
    // 2011, use it at your own risk;
    #target photoshop
    // dialog for pdf-selection;
    var theFiles = app.openDialog();
    if (theFiles) {
         for (var m = 0; m < theFiles.length; m++) {
              var theFile = theFiles[m];
              if (theFile.name.slice(-4) == ".pdf") {
                   var thePdf = openMultipagePDF(theFile);
              else {alert (theFile.name + " is not a pdf-file")}
    ////// function to open all pages of a pdf //////
    ////// influenced by PlaceMultipagePDF.jsx //////
    function openMultipagePDF(myPDFFile) {
    // pdf open options;
         var pdfOpenOpts = new PDFOpenOptions;
         pdfOpenOpts.antiAlias = true;
         pdfOpenOpts.bitsPerChannel = BitsPerChannelType.EIGHT;
         pdfOpenOpts.cropPage = CropToType.MEDIABOX;
         pdfOpenOpts.mode = OpenDocumentMode.RGB;
         pdfOpenOpts.resolution = 247.8;
         pdfOpenOpts.suppressWarnings = true;
         pdfOpenOpts.usePageNumber  = true;
    // change pref;
         var originalRulerUnits = app.preferences.rulerUnits;
         app.preferences.rulerUnits = Units.PIXELS;
    // suppress dialogs;
         var theDialogSettings = app.displayDialogs;
         app.displayDialogs = DialogModes.NO;
    // iterate through pages until fail;
              var myCounter = 1;
              var myBreak = false;
              var theWidth = 0;
              var theHeight = 0;
              while(myBreak == false){
                   pdfOpenOpts.page = myCounter;
                   try {
                        var thePdf = app.open(myPDFFile, pdfOpenOpts);
                        if (thePdf.width > theWidth) {theWidth = thePdf.width};
                        var offset = thePdf.height;
                        thePdf.layers[0].name = myPDFFile.name+"_"+myCounter;
                        if (myCounter == 1) {
                             var theFile = thePdf
                        else {
                             thePdf.layers[0].duplicate(theFile, ElementPlacement.PLACEATBEGINNING);
                             thePdf.close(SaveOptions.DONOTSAVECHANGES)
                        myCounter = myCounter + 1;
                        var theLayer = app.activeDocument.activeLayer;
                        theLayer.translate(0, theHeight);
                        theHeight = theHeight + offset;
                catch (e) {myBreak = true};
    // reset dialogmodes;
    app.displayDialogs = DialogModes.ERROR;
    app.preferences.rulerUnits = originalRulerUnits;
    // resize canvas;
        theFile.resizeCanvas(theWidth, theHeight, AnchorPosition.TOPLEFT);
    //MY WORK
    // merge visible layers (even if there is only one layer)
         try     {
              theFile.mergeVisibleLayers();
              }catch(e) {}
    // create layer, rename, movetobottom, fill white
         theFile.artLayers.add();
         theFile.layers[0].name = "Background";
         theFile.layers[0].move(theFile.layers[1], ElementPlacement.PLACEAFTER);
         var white = new SolidColor();
         white.rgb["hexValue"] = "ffffff";
         theFile.selection.selectAll();
         theFile.selection.fill(white);
    //rename contents layer, add "work" layer for teacher to write on
         theFile.layers[0].name = "Problems";
         theFile.artLayers.add();
         theFile.layers[0].name = "Work";
    //force 2107 width
    //     if(theFile.width != 2107) theFile.resizeImage(UnitValue(2107, "px"), undefined, undefined, ResampleMethod.BICUBIC);
    // force 2048 width
         if(theFile.width != 2048) theFile.resizeImage(UnitValue(2048, "px"), undefined, undefined, ResampleMethod.BICUBIC);
    // save psd;
        psdOpts = new PhotoshopSaveOptions();
        psdOpts.embedColorProfile = true;
        psdOpts.alphaChannels = false;
        psdOpts.layers = true;
        psdOpts.maximizeCompatibility = true;
        var filePathPsd = myPDFFile.path+"/"+myPDFFile.name.slice(0, -4)+".psd";
        if (filePathPsd.exists) filePathPsd.remove();
        theFile.saveAs(File(filePathPsd), psdOpts, false)
    // save pdf whiteboard
        var pdfOpts = new PDFSaveOptions;
        pdfOpts.downSample = PDFResample.NONE;
        pdfOpts.optimizeForWeb = true;
        pdfOpts.PDFCompatibility = PDFCompatibility.PDF15;
        pdfOpts.preserveEditing = false;
        pdfOpts.encoding = PDFEncoding.PDFZIP;
        var filePathPdf = myPDFFile.path+"/"+myPDFFile.name.slice(0, -4)+" Whiteboard.pdf";
        if (filePathPdf.exists) filePathPdf.remove();
        theFile.saveAs(File(filePathPdf), pdfOpts, false)
        theFile.close(SaveOptions.DONOTSAVECHANGES)
    //MY WORK
         return theFile

  • Getting image from Microsoft Access database to display in browser

    Hey! anybody please help me
    I've been trying with no success to get an image from a microsoft access database
    so far this is what i have:
    package Servlets;
    import java.io.*;
    import java.net.*;
    import utils.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class serv extends HttpServlet {
        java.sql.ResultSet rs=null;
        ClsConexion conexion=new ClsConexion("Nedermex");
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            conexion.conectate("1", "1");
            rs=conexion.obtenRegSelect("SELECT * FROM Flores WHERE ID=1");
            try{
                rs.next();
                System.out.println("sadfsadf " + rs.getString("ID"));
            }catch(Exception e){
                e.printStackTrace();
            String ubicGIF = request.getParameter("ubicGIF");
            if((ubicGIF==null) || ubicGIF.length() == 0 ){
                indicarError(response, "Archivo de imagen no establecido");
                return;
            //String archivo = getServletContext().getRealPath(ubicGIF);
            try{
                if(rs.next()){
                    System.out.println("sadfsadf " + rs.getString("ID"));
                    BufferedInputStream ingreso = new BufferedInputStream(rs.getBinaryStream("Imagen"));
                   // BufferedInputStream ingreso = new BufferedInputStream(new FileInputStream(getServletContext().getRealPath("1.jpg")));
                    ByteArrayOutputStream flujoBytes = new ByteArrayOutputStream(512);
                    int byteImagen;
                    while ((byteImagen= ingreso.read()) != -1){
                        flujoBytes.write(byteImagen);
                    ingreso.close();
                    String indiPersistencia = request.getParameter("usePersistence");
                    boolean usePersistence = ((indiPersistencia == null) || (!indiPersistencia.equals("no")));
                    response.setContentType("image/jpeg");
                    if(usePersistence){
                        response.setContentLength(flujoBytes.size());
                    flujoBytes.writeTo(response.getOutputStream());
            }catch(IOException ioe){
                indicarError(response, "Error: " + ioe);
            }catch(java.sql.SQLException sqle){
                indicarError(response, "Error: " + sqle);
        public void indicarError(HttpServletResponse response, String mensaje) throws IOException {
            response.sendError(response.SC_NOT_FOUND, mensaje);
        // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
        /** Handles the HTTP <code>GET</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Handles the HTTP <code>POST</code> method.
         * @param request servlet request
         * @param response servlet response
        protected void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            processRequest(request, response);
        /** Returns a short description of the servlet.
        public String getServletInfo() {
            return "Short description";
        // </editor-fold>
    }i have a class Conexion wich controls the connection and resultsets
    As you can see, i tested accessing a jpeg file: 1.jpg with FileInputStream, and it works perfectly, but when i try to get an image from Microsoft Access using the resultset the way i did, the browser shows the following message
    The image �http://localhost:8084/Nedermex/serv� cannot be displayed, because it contains errors.
    My table in the database in Access is configured as following
    FieldName::::::::::::::DataType
    ID::::::::::::::::::::::::::::::Number
    Imagen::::::::::::::::::::OLE Object
    Now, when i insert an image in the Imagen field, i select the option "Create from file" and select the jpg file (the one that worked with the FileInputStream) and uncheck the Link option (to save the data in the db
    maybe there is something wrong with the sizes or something....
    please help me here!!!
    thank you!

    Yes it is an sql question
    Consider this as my condition need to fetch records collected in database on 16-4-2012 
    Table name =TEST_REPORT
    i have passed the following query
    Select Serial_Number,System_Date,System_Time,Department,O​perator_Name,Serial_Number,Test_Case,Pass_Fail from TEST_REPORT  where System_Date = 4-16-2012, it displays the entire record from database. i have my vi along with this mail.
    Attachments:
    Report Viewer.vi ‏24 KB

  • Get Images from URL's with slight difference?

    Does anyone know how I can download an image referenced in a web page? Get Image URLS from webpage doesn't work, because it is referenced in an unusual way:
    <input type="image" name="theImage" src="http://www.mysite.co.uk.uk/myservlets/myServlet?reqtype=IMG&refresh=184949485733" align="bottom" border="0" WIDTH="400" HEIGHT="400">
    Prior to fetching the image urls, I download the web page from a link, it downloads as html, is there a way to download it as a web archive which might bring the image down as well?
    Rob

    If you're using Firefox, here's something else to try...
    While the web page containing images is open, click on *Tools > Page Info* (or press ⌘I). Click the Media tab and look for a list of image urls in the upper portion of the window. Select any or all of the image urls. Once highlighted, press the *Save As* button in the lower right side of the *Page Info* window. Choose a destination folder and press Open. Image files should be downloaded to the chosen folder.
    Unfortunately, however, during testing (in Firefox 3.6.13), I found that while this method worked fine with some sites, it didn't work so well with others -- Google Images, e.g., would not allow images to be saved. If you encounter similar trouble, you might try setting up and using the workflow below.
    First, create a dedicated download folder, with a name such as "*Firefox Images*." This is important because the workflow's actions will eventually filter out all but the image files in the selected folder -- and its subfolders -- and send any non-image files to the trash. Naturally you'd want to be certain your workflow is acting upon the correct folder, or risk losing essential files elsewhere.
    +Use these actions:+
    1) *Get Selected Finder Items*
    2) *Get Folder Contents* -- check "Repeat for each subfolder found"
    3) *Filter Finder Items* -- filter out non-images:
    Whose: File Type - *Is not* - TIFF Image File -- click the "+" button and add to the list:
    Whose: File Type - *Is not* - JPEG Image File -- click "+" and continue adding:
    Whose: File Type - *Is not* - JPEG 2000 Image File
    Whose: File Type - *Is not* - PICT Image File
    Whose: File Type - *Is not* - GIF Image File
    Whose: File Type - *Is not* - PNG Image File
    Whose: File Type - *Is not* - BMP Image File
    4) *Move to Trash*
    5) *Get Selected Finder Items*
    6) *Get Folder Contents* -- leave "Repeat for each subfolder found" unchecked
    7) *Filter Finder Items* -- remove the accompanying HTML file from the downloaded items:
    Whose: File Type - Is - HTML File
    8) *Move to Trash*
    From Automator's File menu choose *Save As > File Format: Application*. The saved applet will be used as a droplet.
    Firefox web pages to be processed should be saved directly to the newly created "*Firefox Images*" folder. Choose *Save As: Web Page, complete*. Saved web pages can be acted upon individually, or you can fill the Firefox Images folder with multiple saved pages before running the workflow. (How many would be too many to act upon before the workflow fails, however, is unknown; I tested the workflow on only a half dozen or so saved pages at a time).
    To run the workflow, simply drag and drop the Firefox Images folder onto the saved Automator applet's file icon and allow the workflow to complete.
    Good luck, hope this helps.

  • Get image from Excel as shape and Save as .jpg

    Hello,
       I'm fairly new to ActiveX and am having a hard time doing a seemingly simple thing: getting a named image from an Excel file and saving it as a .jpg.  I have seen similar things done for Excel chart objects, but as I understand it images are "shapes" in Excel and I've been unable to find the right method to extract a shape. Please, if anyone could take a look at the attached folder and tell me if I am on the right track, if there is a better way to do this, or if there is a way to do this at all, it would be helpful.  Note that I don't care how efficient a strategy is developed - if I need to save to an intermediate file of another type, that's fine. The only goal is to be able to extract this image and save it with one mouse-click and no manual intervention.
    Folder contains: 1 example Excel file containing the image named "Picture 1"; 1 vi showing the method I've found for exporting Excel charts as .jpg's; and 1 vi with the progress I have made so far trying to pick the image from the Excel file and save it as a .jpg.  
    Thanks in advance!
    Megan
    Solved!
    Go to Solution.
    Attachments:
    GetExcelPicture.zip ‏70 KB

    Hi megan,
    see this link.
    Hope it helps.
    Mike

Maybe you are looking for

  • Pl/sql editor navigation bar

    hi! Is it possible to have the navigation bar for pl/sql editor in Visual Studio inside an Oracle Database Project? The navigation bar is visible if I open a package body from server explorer, but not if I open the generated create script. The naviga

  • Need help connecting my iMac to my receiver

    I recently bought this product http://www.ramelectronics.net/html/RCA-mini-spdif.html the 3.5mm mini to digital coax. I bought it so I could hook up my iMac (http://docs.info.apple.com/article.html?artnum=86810) to my receiver. However, I connected i

  • PSE 7 not opening

    im currently using pse 7 and everytime i try to open the edit function i get a message saying pse has stopped working. it always stops when it says "building twain menu items" ive tried uninstalling and reinstalling but nothing changed. All the other

  • How to automatically block a sales order once it is created?

    Hi,   We have a requirement to automatically block any sales order that is created and start a workflow for approval process and only after the approval is completed does this block go away. We are planning to create the custom block for this. Also w

  • Canon pixma mp250 error 5400(P06)

    Hi everyone i have a problem. Today i bought color catridge cl-511 and black catridge pg-512, the other one smaller pg-510 cl-511 were empty. Yesterday printer worked fine but when i inserted both catrdiges today, error 5400(P06) occured. I dont know