Batch process to generate thumbnail pictures from a long raw column

Hello,
I need to generate thumbnail pictures from already existing pictures. The existing pictures are stored in a long raw column, the option to convert to BLOB col is not possible at the moment so I'm stuck with long raws.
Is there an easy way to generate those new pictures? do I have to build a form to download the picture, resize it and then upload it to the db in a loop for 16,000 pictures?
Any ideas would be appreciated.
Thanks,

Sarvan,
You can have MRP propose two lots of SFG2 based upon lot sizing.  For instance, if you always will want SFG2 to have orders of 50 each, then one way to achieve this would be to set the 'maximum lot size' to 50.  MRP1 Tab of the material master.
There are other lotsizing methodologies that may be better suited to your business requirements as well.
Lot-Size Calculation - Consumption-Based Planning (MM-CBP) - SAP Library
Best Regards,
DB49

Similar Messages

  • How to differentiate picture formats in LONG RAW column?

    Hi,
    I have a table with a long raw column that contains pictures. I would like to know for each row if the picture in the long raw column is in JPEG, TIFF, BMP, etc.
    Does somebody have an idea on how to do this?
    Thanks!
    Matt

    1) You really shouldn't be using LONG or LONG RAW data types any longer. You should at least be using BLOB data types here.
    2) When you designed the schema, there should have been columns (or other tables) to store metadata about the file, including the type of image a row stores.
    3) Lacking any of this, you could write a program that fetches the data and determines whether it is a valid JPEG, then checks to see if it is a valid TIFF, etc. until it happens upon a file format that appears to work. Obviously, though, that is a relatively costly exercise. If that's what you're forced to do, I'd strongly encourage you to store that information in a (potentially new) column in the database so you only have to do it once.
    Justin

  • How to eliminate the thumbnail picture from a .TIFF picture?

    I apologize but could not think of a more suitable forum to ask the question - if someone has an idea for a better place, I will appreciate.
    When I create a picture with my (Nikon) camera in the TIFF format, it appears that the picture file contains in addition to the full blown picture, a reduced version of the picture, something like a large thumbnail vrsion of the picture. I found it by trying to create a PDF file of the .TIFF file - Acrobat created a two page file, one with the full picture and one with the reduced picture. It looks that I can't tell the camera not to embbed the thumbnail version.
    So my question is, from someone who is familiar with the .TIFF file format, how to eliminate that thumbnail version from the .TIFF file. Must be somewhere (hopfully one) location in the file that when modifying it it eliminates the thumbnail picture from Acrobat's view into the .TIFF file.
    As to the question why not simply erase that undesired page from the PDF file - the answer is that I actually going to assemble many (hundreds) such pictures into one PDF file. Acrobat will put all those pictures such that each main picture will be followed by its own thumbnail and therefore I will have to select manually each single thumbnail page before erasing them, extremely tedious. If I could process it at the individual .TIFF file as describrd above, I could easily write a program that does this modification to all my .TIFF files with one invokation.
    Many thanks,
    David

    Try ExifTool
    http://www.sno.phy.queensu.ca/~phil/exiftool/

  • How can i read a stored picture in oracle Long Raw datatype? blob or clob?

    How can i read a stored picture in oracle Long Raw datatype? Like a blob or clob?....i am using jdk 1.3
    This is because...i tried to read it like a blob but i obtain a exception...about Type of column no valid......but the column exist....and it contains the long raw datatype of the pictures.....this is my code:
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import oracle.jdbc.driver.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.InputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.OutputStream;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.DriverManager;
    import oracle.sql.BLOB;
    import oracle.sql.BLOB.*;
    import oracle.jdbc.driver.*;
    import java.sql.*;
    class rec_ima1
    public static void main(String h[])
    Connection con = null;
    Blob bl;
    final ImageIcon image1;
    JPanel photo;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    con= DriverManager.getConnection("jdbc:oracle:thin:@123.3.12.213:1521:db_name","user","password");
    String query = "Select * from pictures where ID = '18840'";
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery( query );
    if (!rs.next())
    System.out.println("Empty Result Set");
    bl = rs.getBlob(5);
    if (bl == null) {
    System.out.println("Null Blob");
    return;
    InputStream is = bl.getBinaryStream();
    int imageLength = (int) bl.length();
    System.out.println(imageLength);
    System.out.println(bl.length());
    byte[] imageData = new byte [imageLength];
    is.read(imageData, 0, imageLength);
    image1 = new ImageIcon(imageData);
    photo = new JPanel() {
    public void paint(Graphics g){
    g.setColor(Color.lightGray);
    g.drawImage(image1.getImage(), 0, 0, this);
    } catch (Exception e) {
    e.printStackTrace();
    Now i tried using clob:
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import oracle.jdbc.driver.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.InputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.OutputStream;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.DriverManager;
    import oracle.sql.CLOB;
    import oracle.sql.CLOB.*;
    import oracle.jdbc.driver.*;
    import java.sql.CallableStatement;
    class rec_ima4
    public static void main(String h[])
    Connection con = null;
    Clob cl;
    JPanel photo;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    con= DriverManager.getConnection("jdbc:oracle:thin:@123.3.12.213:1521:db_name","user","password");
    con.setAutoCommit (false);
    String query = "Select * from pictures where ID = '18840'";
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery( query );
    while (rs.next()) {
    oracle.sql.CLOB clob = (CLOB) rs.getObject(5); //line 47
    } catch (Exception e) {
    e.printStackTrace();
    This is the runtime exception:
    java.lang.ClassCastException: [B
    at rec_ima4.main(rec_ima4.java:47)

    Thanks by answering to me......
    Well....i did that....but what is ImageIO?....
    I declared a ImageIcon imageIO, but this give me the following:
    rec_ima3.java:49: cannot resolve symbol
    symbol : class BufferedImage
    location: class rec_ima3
    BufferedImage bi = ImageIO.read(bInput);
    ^
    rec_ima3.java:49: cannot resolve symbol
    symbol : variable ImageIO
    location: class rec_ima3
    BufferedImage bi = ImageIO.read(bInput);
    ^
    What classes i have to import?.....what is ImageIO?
    Thanks

  • Help: Extract OLE object from 8i (long raw) to a server file folder

    Posting here because most of the technical discussion I have found are in this group (Forms).
    I have an 8i db with workpapers(.doc,.xls,etc) stored in a Long Raw column wrapped in OLE that were collected using forms. The DB is maintained on a Sun Solaris platform.
    I need to extract the documents and write each one to a server folder as a .doc or ,xls without any OLE details.
    Is this possible? How?

    As far as I know you have to use OLE Item to work with the information. Unfortunately there is not any standart way to extract a source document from OLE. Some applications such as Word, Excel support OLE Automation, so you could use OLE2 package to save the document as a file, that is the easest way. But others don't, so you may have to use an undocumented way to extract a document.
    Take a look at the following thread:
    Subj: 6i to 9i Ole to LOB translations, How do you know the App. server?
    Re: 6i to 9i Ole to LOB translations, How do you know the App. server?
    P.S. If you can't extract some types of your documents, please let me khow.
    P.P.S. To extract a document through OLE2 package you could use something like the following. /I'm not sure the code is correct/:
    DECLARE
    handle ole2.obj_type;
    BEGIN
    ACTIVATE_SERVER('OLE1');
    handle := forms_ole.get_interface_pointer('OLE1');
    BEGIN
    -- Save a document to disk
    Args :=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(Args, 'C:\test.doc'); -- file name
    OLE2.INVOKE(handle, 'SaveAs', Args);
    OLE2.DESTROY_ARGLIST(Args);
    EXCEPTION WHEN OTHERS THEN
    Message('Error');
    END;
    -- OLE2.RELEASE_OBJ(handle);
    END;

  • URGENT - Extract Image Files From Long Raw Column

    Hi.
    I have to extract image files (tif and wmf format) from "long raw" column and put them in a directory, using a PL/SQL procedure.
    Can anyone help me.
    Thanks

    Well that is interesting, that ORA returns no records on Metalink. Anyway, that was for my own curiosity.
    As you are on 10g, this is how I would write a long raw to a file if I had no choice:
    1) create a gtt with a column of type blob
    2) insert into the gtt the long raw column using the to_lob conversion function
    3) you now have a lob!
    4) open a binary file for writing using utl_file (binary mode was introduced in 10g)
    4) use dbms_lob to read through the blob and write it in chunks to the file
    You will have to do this row by row. It will be painfully excrutiatingly slow.
    This is basically your only choice unless you have a OCI programmer to hand. In which case I would be getting them to write the C code to read the long raw column and write it to a file. This could then be compiled into a library and called as an external procedure from PL/SQL.
    HTH
    Chris

  • How can I batch process 4 diff image sizes from 1 master?

    Hi there
    What I would like to do is create 4 separate image files of varying sizes (large, medium, small & extra small) from one master image. I would need the ability to name each file individually too, ie. picture1_large, picture1_medium etc
    I have a few thousand files to process so ideally a solution that I didnt have to keep checking on would be preferable. I know I can create a batch process for one size but its creating the four diff sizes in a batch which im finding  difficult to work out.
    any help would be much appreciated
    Jim

    Simply drag the entire folder through Bridge—or even individual files—the invisible xmp files containing your adjustments will automatically and invisibly travel along with the image files, as long as you do it within Bridge, not through the OS.
    Otherwise, you would need to set your Mac OS to always make invisible files visible, and you don't want that hassle.
    Just use Bridge to move files around or to copy them to a new folder.
    Incidentally, there's a dedicated Adobe Bridge forum:
    http://forums.adobe.com/community/bridge?view=discussions

  • Batch Processing in Photoshop CS5 opens files in Camera Raw

    Regarding batch processing straight from Photoshop CS5 (not in Bridge) I am unable to get the .dng files to open up without requiring that I click on 'open image' in Camera Raw.  I am trying to run a simple two step sharpen plus save and close action on a batch of 700+ .dng files.  There is no open command in the action.  Thanks.

    You probably need to check Suppress File Open Options Dialogs.
    MTSTUNER

  • HOW TO RETRIEVE A LONG RAW COLUMN FROM A TABLE AND WRITE TO OS FILE

    Good evening.
    Please how can I read a long raw datatype from a table and insert into an operating system file using PL/SQL.
    Thank you.

    What does this have to do with LONG RAW? It is about UTL_FILE and not especially great code.
    The question is how to retrieve and write LONG RAW and that is quite a different matter.
    First you must convert it to BLOB.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:13213885403654
    Then you can write it out to the file system
    http://www.morganslibrary.org/reference/utl_file.html
    Look at the "Extract Blob" demo

  • How to insert records with LONG RAW columns from one table to another

    Does anybody know how to use subquery to insert records with columns of LONG RAW datatype from one table to another? Can I add a WHERE clause in the subquery statement? Thanks.

    Insert into ... Select statements are not supported for long or long raw. You will have to either use PL/SQL or convert your long raw to blobs.

  • How to select data(first 10 charcters) from a LONG datatype column.?

    Hi,
    I am getting below error wile i am trying to select forst 10 charcter from a log datatype column. May be I am using it in a wrong way using SUBSTR function.
    I dont know whether SUBSTR works for LONG columns or not as it's char function.
    I am not able to find any inbuild conversion function which will work like TO_CHAR.Please revert.
    My steps:-
    =================================================
    SQL> create table long_varchartest(
    2 nirav long, sangram varchar2(30));
    Table created.
    SQL> insert into long_varchartest values('ns89027','sd22712');
    1 row created.
    SQL> insert into long_varchartest values('Nirav Shah', 'Sangram Dash');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from long_varchartest;
    NIRAV SANGRAM
    ns89027 sd22712
    Nirav Shah Sangram Dash
    SQL> insert into long_varchartest(sangram)
    2 select nirav from long_varchartest;
    select nirav from long_varchartest
    ERROR at line 2:
    ORA-00997: illegal use of LONG datatype

    declare
    l_text varchar2(4000) ;
    begin
      select nirav into l_text from  long_varchartest where sangram = 'sd22712';
      dbms_output.put_line(substr(l_text,1,10)); 
    end ;you could also follow this link [http://www.oracle.com/technology/oramag/code/tips2003/052503.html]

  • Need some help trying to generate thumbnail images from large Jpegs

    Hello,
    I have some ActionScript 3.0 code, created with Flex that
    will load a large JPEG image (say 3000x2000 pixels) that I'm trying
    to create a 100 pixel thumbnail. I have the code working where I
    generate the thumbnail, but it's not maintaining the aspect ratio
    of the original image. It's making it square, filling in white for
    the part that doesn't fit.
    I've tried just setting the height or width of the new
    image, but that doesnt render well, either.
    To see what I'm talking about, I made a screen shot, showing
    the before image, and the rendered as thumbnail image:
    http://www.flickr.com/photos/taude/533544558/.
    Now, there's a few things important to note. I'm saving the
    thumbnail off as a JPEG. As you can see in my sample application,
    the original renders fine with the proper aspect ratio, it's when
    I'm copying the bytes off the bitmapdata object, where I need to
    specify a width and height, that the trouble starts. I've also
    tried using .contentHeight and .contentWidth and some division to
    manually specify a new bitmapdatasize, but these values seem to
    always have NaN.
    private function makeThumbnail():void{
    // create a thumbnail of 100x100 pixels of a large file
    // What I want to create is a a thumbnail with the longest
    size of the aspect
    // ratio to be 100 pixels.
    var img:Image = new Image();
    //Add this event listener because we cant copy the
    BitmapData from an
    /// image until it is loaded.
    img.addEventListener(FlexEvent.UPDATE_COMPLETE,
    imageLoaded);
    img.width=100;
    img.height=100;
    img.scaleContent=true;
    img.visible = true;
    // This is the image we want to make a thumbnail of.
    img.load("file:///C:/T5.jpg");
    img.id = "testImage";
    this.addChildAt(img, 0);
    private function imageLoaded(event:Event):void
    // Grab the bitmap image from the Input Image and
    var bmd:BitmapData =
    getBitmapDataFromUIComponent(UIComponent(event.target));
    //Render the new thumbnail in the UI to see what it looks
    theImage.source = new Bitmap(bmd); //new Bitmap(bmd);
    public static function
    getBitmapDataFromUIComponent(component:UIComponent):BitmapData
    var bmd:BitmapData = new
    BitmapData(component.width,component.height );
    bmd.draw(component);
    return bmd;

    Dev is 10gR2 and Prod is earlier version of Oracle, 10gR1.
    The schema (or table(s)) export file created by Oracle Database Control in Oracle 10gR2 is not importable into 10gR1, by default.
    Workaround.
    Use the Schema (table(s) export wizard of in the Maintenance section
    of the Oracle Database Control in ver 10R2,
    but when you get to the end of the wizard (I recall Step 5),
    show the data pump export source PL/SQL code, cut and past to editor,
    and find the variable where you can set the Oracle database version
    to your prod database version,
    then run the script from the SQL Plus prompt in 10gR2 dev,
    and this creates an Oracle 10gR1 compatible data export file.
    Then go to Prod and run the schema (table(s)) import data wizard,
    and import the export file. You will have to option to move the data
    to another schema or tablespace if required.
    Just to not run into troubles, I use the same schema and tablespace name
    in both dev and prod.
    the variable you must modify in the 10gR2 datapump export script looks like
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'ExportTableToProdJob', version => 'COMPATIBLE');
    and you must change manually to
    h1 := dbms_datapump.open (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => 'ExportTableToProdJob', version => '10.1.0.1');
    This creates a 10g1.0.1 or later compatible export data file.
    You must have read/write privileges to the folder were the export data file will be created, and imported from. (Oracle Directory Object)

  • Is there any way how to generate JPG image from DNG easily?

    I use PS, FW and Bridge.
    I have often a problem to show images for preview from DNG files.
    Please can you explain me, how to do it as a batch easily? Generate preview images from a whole folder?
    Do you generate JPG in original size or do you archive only DNG?
    Thank you

    Little confused here.  Are you saying you do not get a thumbnail for a DNG and therefore can not view as a preview?
    If you want to batch convert a DNG to a jpeg you can use tools/photoshop/image processor.

  • Why Constantly Generating Thumbnails?

    Starting yesterday, PSE9 organizer is constantly generating thumbnails. And very slow to show images. I let it run all night and it was still "generating thumbnails" even though all showed. Looks like it's stuck in a loop. What to do?

    I think this is due to loop caused by corrupt files in the file list that got through the screening process.
    If you exit during this loop it sometimes leaves the elementsorganiser.exe running as a an orphaned process and the you may not be able to restart the organiser unless you kill the process or re-boot
    The loop often continues even if you kill the process or re-boot.
    I have found three fixes:
    1. Try and find the corrupt files and remove them from the organiser, time consuming if you have a large number of files.
    2. Delete all the files in the catalogue.
    3. Create a new catalogue and open it, then try a repair on the original catalogue.
    All three have worked for me; the orphan process and generating thumbnails loop disappear
    Hope this helps

  • Selected pics in Bridge don't open in Fireworks batch process

    I am trying to do a batch process in Fireworks CS3, initiated from Bridge CS3.
    If I select images in Bridge, then select Tools/Photoshop/Image Processor, and then run the action, the selected photos in Bridge are then processed.
    However, trying a similar procedure: select photos, then Tools/Fireworks/Batch Process... the Batch Process Window does not open, but just the Startup dialog. If you then choose Batch Process, it doesn't recognize the selected photos in Bridge.
    Am I missing something or is this a bug?
    Thanks
    Peter

    Nick ..
    If it's the latest version ......... I have it (and therein might be my downfall whilst others upgade to be compatible with each other!!) .... except I must do an upgrade to the latest 2013 NIS, something on the Christmas spare time list to do (no emoticons for that ..... shame!!).
    AMAZINGLY .... today .... something .... somewhere said, 'you can now view the embedded pics in Yahoo'. I did not do a thing .... promise!! It just happened.
    That's the wonder of computers and software!! Just chill and maybe it will all happen/sort itself. Having been doing 'this' stuff for a 'few' years (or more!!) now, nothing really fazes me anymore. Just work round it or live with it!!
    Be sure .... be very sure, that I will come back if detect further problems and thanks for your great advices.
    My best wishes to you, and all readers of this thread for Christmas and the New Year.
    Bob.

Maybe you are looking for