Object resizing on file import

Basic question, probably, sorry, but can't find anything in
the help files/knowledge base.
I'm using Flash Professional 7.0.
I wanted to import a 400 x 300 pixel animation into flash as
a sequence of frames. It does this fine, except it resizes the
images for some reason to 192 x 144.
Question 1: why does it do this? Under what circumstances
could it possibly be useful for the programme to resize the images
to some dimensions of its own choosing?
Question 2: how do I stop it doing this? (There are so many
frames to the animation, I really don't want to have to resize and
reposition every frame manually.)

> Question 1: why does it do this? Under what
circumstances could it possibly be
> useful for the programme to resize the images to some
dimensions of its own
> choosing?
>
> Question 2: how do I stop it doing this? (There are so
many frames to the
> animation, I really don't want to have to resize and
reposition every frame
> manually.)
Haven't tried that in a long time, but you've probably saved
the
pictures with a higher resolution than 72dpi. Check that in
Photoshop or
wherever you produced the pictures, set one test picture to
72 dpi and
import it into Flash. If it works, reply #2 would be obvious.
Christian Scholz-Flöter

Similar Messages

  • Biar file import does not import any repository object

    Hi,
    I have extracted a Biar file from Business Objects Enterprise XI 2.0 Server and it has size 20 MB. When I import this file into another Server using Import Wizard which has Business Objects Enterprise XI 2.0, the outcome is unfavorable. Inspite of both the source and target system being on same enterprise version (11.5.8.1111) plus both on Service Pack 2 Fix Pack 2.7, the repository objects log within the Import Wizard shows 0 objects imported.
    What is the remedy to this situation ?
    Regards,
    Neonevin

    Hello,
    Not really that I know of.
    Well this is a big problem since we can not export projects easaly between different computers. Or back to the same computer using this metod insted of the whole project fils and associated files.
    Also there might be a problem exporting to different editing programs as Premiere.
    And Apple do not seem to bother. We have to try to solve problems like this in forums and searching for answers and plugins for hours.
    This i think will make us to leave final cut as editing software.
    Also this version of final cut x - apart from final cut 7 does not seem to be able to export audio in a proper way.
    Especially the audio that can be a little bit lika a worms nest seems to be impossible to export with all or most of the options left. It wants to put everything together in mixes audio tracks.
    POskar

  • In iPhoto how do I stop files from auto resizing as they import? I don't want my files reduced to 72. The option to choose size on the export menu not suitable for up sizing, as you can't restore the quality removed?

    in iPhoto how do I stop files from auto resizing as they import? I don't want my files reduced to 72. The option to choose size on the export menu not suitable for up sizing, as you can't restore the quality removed.

    Short answer: They are not resizing, there is no quality lost. The dpi is only set when you decide what size you're printing at
    Longer answer:  Dpi means nothing in the digital world of your computer. There are no "inches" to have "dots per..." Size is measured in pixels. That's the same on your camera. It doesn't take 10 x 8 or 6 x 4 shots. It takes shots measured in megapixels. For instance 4,000 x 3,000 is a 12 megapixel camera.
    Using that example, that shot from that camera has 12 million pixels. So that's how many "Dots" there are. To decide the ratio of dots per inch, you now need to decide the "inches" part. And that's printing. Print at 10 x 8 and the dpi will be 4,000/10 or about 400 dpi. At 6 x 4 then it's 4,000/6 or 660 dpi. Work the other way: Print at 300 dpi and the resulting image will be about 13 inches on the longer side.
    So, your photo as a fixed number of pixels. Changing the dimensions of the print will vary the dpi, changing the dpi will vary the dimensions of the print.
    For more see http://www.rideau-info.com/photos/mythdpi.html
    Regards
    TD

  • MDG File Import for Custom Object

    Hello Experts,
    We are in MDG 6.1 and trying to implement the File import for custom object. Basically the idea is used to DTIMPORT transaction.Apart from the configurations in MDGIMG, What are the classes that has to be implemented? Can anyone share some info on this.
    Thanks

    Hi,
    After seeing this thread, i rechecked my POD. Email Id is not there.  Did you find any solution or explanation why it is not there?

  • "Embedding OLE objects is unsupported. Use File- Import to import media." Error dialog while concurrently Flash CC executions

    Hi,
    we are using Flash CC an a dedicated windows server with two userprofiles. Each user has its own licence.
    If we run a jsfl script singly, this script runs fine.
    If we run the same jsfl script on both users we get the error:
    "Embedding OLE objects is unsupported. Use File->Import to import media."
    I read the article addItem() -> "Embedding OLE objects is unsupported" , but it could not the problem, because the script runs fine singly.
    Could it be possible that both users uses the same Flash CC Clipboard ore are there any other shared modules etc?
    Best regards
    Alex

    can you write how to use ?
    i write
    "import the flash.display.MovieClip; "
    still error ahhh
    i try to change extends MovieClip instead Spirt
    and not error stop(); and gotoAndStop Already
    but
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
              at MemoryGame/nextTurn()
              at MemoryGame/clickStart()
    i got thissssssss TT
    import flash.display.Sprite;
    import flash.events.*;
    import flash.text.*;
    import flash.utils.Timer;
    import flash.media.Sound;
    import flash.media.SoundChannel;
    import flash.net.URLRequest;
    import flash.display.MovieClip;
    that i import

  • Problems with I/O object to a File

    First of all, hi to everybody, sorry for my English.
    I have a problem with my Exam Project. I need to write and read object (Utente) from a file. Following the Class then a Description of the Error/problem
    questo � il loader
    import java.io.*;
    public class Load {
    public Load(){}
    public void Caricalista(ListKey Lista) throws Exception{
    Utente loaded,x;
    ObjectInputStream ois = new ObjectInputStream(new FileInputStream ("elenco.sav"));
    while((loaded = (Utente)ois.readObject())!=null){
    loaded = (Utente)ois.readObject();
    System.out.println(loaded.nome);
    Lista.insert(loaded);
    x=Lista.head();
    System.out.println(x.nome);}
    ois.close();
    Questo il Saver
    import java.io.*;
    public class Salva {
    public Salva(){}
    public void salva (Utente piero) throws IOException{
    Load loader=new Load();
    ListKey Lista=new ListKey();
    try{ loader.Caricalista(Lista);
    }catch (Exception e){System.out.println ("Errore in Salva.java");}
    FileOutputStream fos = new FileOutputStream ("elenco.sav");
    ObjectOutputStream oos = new ObjectOutputStream(fos);
    Lista.insert(piero);
    Utente test=new Utente();
    int i;
    for(i=0;i<Lista.lenght();i++){
    Lista.scorri(test);
    oos.writeObject(test);
    oos.close();
    public class ListKey extends ListNode {
    public ListKey() {super();}
    public ListKey (Utente o){super(o);}
    public ListKey(Utente o, List l){super (o,l);}
    public Utente find (String user){if (isEmpty())return null;
    if (user.equals(head().nome)) return head();
    return ((ListKey)tail()).find(user);
    public Utente scorri(Utente prova){if (isEmpty()) return null;
    else {prova=head();
    return ((ListKey)tail()).scorri(prova);
    e il main:
    public class mainvia {
    * @param args
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    Utente prova=new Utente();
    prova.nome="Tettone";
    prova.psw="300786";
    prova.LibriPrestito="SI";
    prova.TitlePrestito1="IL Giovane Holden";
    ListKey Lista=new ListKey();
    Salva save=new Salva();
    try {save.salva(prova);}catch(Exception e){}
    Load loader=new Load();
    try{loader.Caricalista(Lista);
    }catch(Exception e){}
    Utente x=new Utente();
    System.out.println(x.nome);
    The problem is that, if I use only the Load for open the file,it works great and find the first User, instead if in the Salva I run try{ loader.Caricalista(Lista);
    }catch (Exception e){System.out.println ("Errore in Salva.java");}
    it always goes in Error and print "Errore in Salva.java" like if it can not open the file.
    How Can I Resolve?
    The base idea is the:
    from the mainvia I pass the ListKey Lista to save, then i load all the object from the file to the Lista, then i add to the List the new Object then i write all the object in the List to the file.

    Let's start by printing some useful information about the error, instead of just the fact that an error occurred:}catch (Exception e){e.printStackTrace();}Tell us what that produces.

  • Appending objects in text file and searching.......

    I have been trieng to implement simple search operation on the class objects stored in the text file. but when i try to append new objects in the same file and search for the same; java.io.StreamCorruptedException is thrown. wat the problem is, that wen i append to the text file; it stores some header information before the actual object is stored and on the deserialization, this header information is causing the exception. the same header information is stored every time, i append to the file. anybody knws hw to get past it??? my code is as given below:
    package coding;
    import java.io.BufferedReader;
    import java.io.EOFException;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.io.PrintWriter;
    import java.io.Serializable;
         class Employee implements Serializable{
              private static final long serialVersionUID = 1L;
              String name;
              int id;
              public int getId() {
                   return id;
              public void setId(int id) {
                   this.id = id;
              public String getName() {
                   return name;
              public void setName(String name) {
                   this.name = name;
              public Employee(String name, int id) {
                   this.name = name;
                   this.id = id;
         public class FileSearch{
         public static void main(String[] args) throws IOException
              /*Entering the records into the file*/
              Employee ob = null;
              File file=new File("c:\\abc.txt");
              InputStreamReader isr=new InputStreamReader(System.in);
              BufferedReader stdin=new BufferedReader(isr);
              char fileExist='y';
              if(file.exists())
                   System.out.println("File already exists!!!");
                   System.out.println("Append New Records(press y) Or Search Existing File(press any other button)?:");
                   String strTemp=stdin.readLine();
                   fileExist=strTemp.charAt(0);
              else
                   System.out.println("File doesnt exist; creating new file......");
              if(fileExist=='y')
                   FileOutputStream fos=new FileOutputStream(file,true);
                   ObjectOutputStream oos=new ObjectOutputStream(fos);
                   char choice='y';
                   System.out.println("Enter records:");
                   while(choice=='y')
                        System.out.println("enter id:");
                        String id_s=stdin.readLine();
                        int id=Integer.parseInt(id_s);
                        System.out.println("enter name:");
                        String name=stdin.readLine();
                        ob=new Employee(name,id);
                        try
                             oos.writeObject(ob);
                             //count++;
                             oos.flush();
                        catch(Exception e)
                             e.printStackTrace();
                        System.out.println("Enter more records?(y/n)");
                        String str1=stdin.readLine();
                        choice=str1.charAt(0);
                   oos.close();
              /*Searching for the record*/
              System.out.println("Enter Record id to be searched:");
              String idSearchStr=stdin.readLine();
              int idSearch=Integer.parseInt(idSearchStr);
              try
                   FileInputStream fis=new FileInputStream(
                             file);
                   ObjectInputStream ois=new ObjectInputStream(fis);
                   int flag=1;
                   FileReader fr=new FileReader(file);
                   int c=fr.read();
                   for(int i=0;i<c;i++)
                        Object ff=ois.readObject();
                        Employee filesearch=(Employee)ff;
                        if(filesearch.id==idSearch)
                             flag=0;
                             break;
                   ois.close();
                   if(flag==1)
                        System.out.println("Search Unsuccessful");
                   else
                        System.out.println("Search Successful");
              catch(Exception e)
                   e.printStackTrace();
    }

    966676 wrote:
    All what I need to elect by who this word repeated. But I don't know really how to make It, maybe LinkedListYou should choose the simplest type fullfilling your needs. In this case I'd go for <tt>HashSet</tt> or <tt>ArrayList</tt>.
    or I dont know, someone could help me?You need to introduce a variable to store the actual name which must be resetted if an empty line is found and then gets assigned the verry next word in the file.
    bye
    TPD

  • Smart Objects without tmp files

    I am trying to place/ import a .psd as a smart object into a composite and have Photoshop keep referenceing that same psd witout it creating a local tmp file.
    does anyone know fi this can be done?
    Thanks!

    Embedded objects are independent of any original file. Embedded objects are a copy of whatever (file, layer, group, etc)  anything supported by Photoshop.  You can have smart object layers in a document that share a common object.  If you replace that common shared object all the smart object layers that share that the object pixels will change and be transformed by the smart object layer's associated transform.  This is often used for  creating picture packages. However the replacement object must be the same size as the original object for all the transforms to work correctly.
    In fact when you update a smart object layer by double clicking on a layer's smart icon in the layers palette.  Photoshop copies the object into a unique file in your user id temp space the first time you double click on a layers smart icon as a work file. This file will remain there till the document containing the object the temp file was created for is closed in Photoshop. If you make more the a single edit  to a smart object  layer in an edit session the same file will be use only a single temp file is used any given object. Photoshop will delete any temp files it created for a document when the document is closed in Photoshop. When users commit changes to the temp work file Photoshop will update the documents embedded object. The work file may be updated  by Photoshop or a Plug-in like ACR.
    There have been threads about creating  metadata links for Smart Object layer to help user try to keep things in sync.  I don't know if its possible or that is that desirable not to have versions of objects

  • Problem with Source:Object and Output:File

    Hello dear people,
    i have been found example like FileCompressTool.
    But i have been coded for conversors or decompilers.
    I have got error of File and FileStream
    Look at my picture
    I have been tried because my Adobe AIr Application has not error..
    How do i fix this error? Or i must run Adobe Air as Administrator Right?
    Code for Example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication
              title="Half-Life Map Decompiler"
              xmlns:mx="http://www.adobe.com/2006/mxml"
              layout="absolute"
              showStatusBar="false">
              <mx:Script>
                        <![CDATA[
                                  import com.valve.utils.mapEncorder;
                                  import flash.filesystem.File;
                                  private var bspSrc:File;
                                  private var mapDes:File;
                                  private function ChooseSrc():void
                                            if( bspSrc == null ) {
                                                      bspSrc = new File();
                                            bspSrc.addEventListener(Event.SELECT,  sourceSelectHandler);
                                            bspSrc.browseForOpen("Choose Half-Life 1 Bsp File", [new FileFilter("Half-Life 1 *.bsp", "*.bsp")]);
                                  private function sourceSelectHandler(event:Event):void
                                            bspSrcText.text = bspSrc.nativePath;
                                            StateLog.text = bspSrc.nativePath + " has been selected.";
                                  private function ChooseDes():void
                                            if ( mapDes == null ) {
                                                      mapDes = new File();
                                            mapDes.addEventListener(Event.SELECT, destinationSelectHandler);
                                            mapDes.browseForDirectory("Choose for decompiled Map file!");
                                  private function destinationSelectHandler(event:Event):void
                                            mapDesText.text = mapDes.nativePath;
                                            StateLog.text = mapDes.nativePath + " has been selected.";
                                  private function Decompile():void
                                            var bsp2map:mapEncorder = new mapEncorder();
                                            bsp2map.decompileBsp2map(bspSrc, mapDes);
                                            StateLog.text = "This Map File has been decompiled complety.";
                        ]]>
              </mx:Script>
              <mx:Label left="10" top="10" text="Choose your bsp ( used by Half-Life 1 ):"/>
              <mx:TextInput id="bspSrcText" left="15" right="63" top="36"/>
              <mx:Button right="15" top="36" label="..." click="ChooseSrc()"/>
              <mx:Label left="10" top="70" text="Choose your decompiled map in your directory:"/>
              <mx:TextInput id="mapDesText" left="15" right="63" top="96"/>
              <mx:Button right="15" top="96" label="..." click="ChooseDes()"/>
              <mx:Label left="10" top="130" text="View with decompiled details:"/>
              <mx:Button right="98" top="128" label="Decompile" click="Decompile()"/>
              <mx:Button right="192" top="128" label="Clean log"/>
              <mx:TextArea id="StateLog" left="15" right="15" top="156" bottom="15"/>
              <mx:Button right="15" top="128" width="75" label="About..."/>
    </mx:WindowedApplication>
    And com.valve.utils.mapEncorder.as
              Valve Software
              Half-Life 1 - Maps
    package com.valve.utils
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import flash.utils.ByteArray;
              public class mapEncorder
                        public function decompileBsp2map(bspSrc:Object, mapDes:File):void
                                  if( bspSrc == null || mapDes == null ){
                                            throw new ArgumentError("Half-LIfe Bsp File and Half-Life Map File cannot be null.");
                                  var bspSrcByte:ByteArray;
                                  var mapFileTarget:File = new File(mapDes.nativePath);
                                  var fileTime:Date;
                                  if(bspSrc is File){
                                            var bspSrcFile:File = new File;
                                            if(bspSrcFile.exists || bspSrcFile.isDirectory){
                                                      throw new ArgumentError("If your bsp File is current version.");
                                            var bspFileStream:FileStream = new FileStream();
                                            bspFileStream.open(bspSrcFile, FileMode.READ);
                                            bspSrcByte = new ByteArray;
                                            bspFileStream.readBytes(bspSrcByte, bspFileStream.bytesAvailable);
                                            bspFileStream.close();
                                            if (mapFileTarget.isDirectory)
                                                      mapFileTarget = mapFileTarget.resolvePath(bspSrcFile.name + ".map");
                                                      fileTime = bspSrcFile.modificationDate;
                                            else if (bspSrc is ByteArray)
                                                      bspSrcByte = bspSrc as ByteArray;
                                                      if (mapFileTarget.isDirectory)
                                                                mapFileTarget = mapFileTarget.resolvePath("_decompiled.map");
                                                      fileTime = new Date();
                                            else
                                                      throw new ArgumentError("Bsp File must be complety.");
                                            var mapFileStream:FileStream = new FileStream();
                                            mapFileStream.open(mapFileTarget, FileMode.WRITE);
                                            mapFileStream.writeBytes(bspSrcByte);
                                            mapFileStream.close();
    Thank you for help - If you find an error than you can tell me. If it doesn't work than i will try Flash Builder with Running as Admin.
    Regards J. Eckervogt

    I have been found problem because i have been found issus of if (...) with !
    It is okay. I have been forgotten. I am sorry. Thanks.. I have been fixed this..
    It is true
    But is worng code :
              Valve Software
              Half-Life 1 - Maps
    package com.valve.utils
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import flash.utils.ByteArray;
              public class mapEncorder
                        public function decompileBsp2map(bspSrc:Object, mapDes:File):void
                                  if( bspSrc == null || mapDes == null ){
                                            throw new ArgumentError("Half-LIfe Bsp File and Half-Life Map File cannot be null.");
                                  var bspSrcByte:ByteArray;
                                  var mapFileTarget:File = new File(mapDes.nativePath);
                                  var fileTime:Date;
                                  if(bspSrc is File){
                                            var bspSrcFile:File = new File;
                                            if(bspSrcFile.exists || bspSrcFile.isDirectory){
                                                      throw new ArgumentError("If your bsp File is current version.");
                                            var bspFileStream:FileStream = new FileStream();
                                            bspFileStream.open(bspSrcFile, FileMode.READ);
                                            bspSrcByte = new ByteArray;
                                            bspFileStream.readBytes(bspSrcByte, bspFileStream.bytesAvailable);
                                            bspFileStream.close();
                                            if (mapFileTarget.isDirectory)
                                                      mapFileTarget = mapFileTarget.resolvePath(bspSrcFile.name + ".map");
                                                      fileTime = bspSrcFile.modificationDate;
                                            else if (bspSrc is ByteArray)
                                                      bspSrcByte = bspSrc as ByteArray;
                                                      if (mapFileTarget.isDirectory)
                                                                mapFileTarget = mapFileTarget.resolvePath("_decompiled.map");
                                                      fileTime = new Date();
                                            else
                                                      throw new ArgumentError("Bsp File must be complety.");
                                            var mapFileStream:FileStream = new FileStream();
                                            mapFileStream.open(mapFileTarget, FileMode.WRITE);
                                            mapFileStream.writeBytes(bspSrcByte);
                                            mapFileStream.close();
    Replace to:
              Valve Software
              Half-Life 1 - Maps
    package com.valve.utils
              import flash.filesystem.File;
              import flash.filesystem.FileMode;
              import flash.filesystem.FileStream;
              import flash.utils.ByteArray;
              public class mapEncorder
                        public function decompileBsp2map(bspSrc:Object, mapFile:File):void
                                  if( bspSrc == null || mapFile == null ){
                                            throw new ArgumentError("Half-LIfe Bsp File and Half-Life Map File cannot be null.");
                                  var bspSrcByte:ByteArray;
                                  var mapFileTarget:File = new File(mapFile.nativePath);
                                  var fileTime:Date;
                                  if(bspSrc is File){
                                            var bspSrcFile:File = bspSrc as File;
                                            if(!bspSrcFile.exists || bspSrcFile.isDirectory){
                                                      throw new ArgumentError("If your bsp File is current version.");
                                            var bspFileStream:FileStream = new FileStream();
                                            bspFileStream.open(bspSrcFile, FileMode.READ);
                                            bspSrcByte = new ByteArray();
                                            bspFileStream.readBytes(bspSrcByte, bspFileStream.bytesAvailable);
                                            bspFileStream.close();
                                            if (mapFileTarget.isDirectory)
                                                      mapFileTarget = mapFileTarget.resolvePath(bspSrcFile.name + ".map");
                                                      fileTime = bspSrcFile.modificationDate;
                                            else if (bspSrc is ByteArray)
                                                      bspSrcByte = bspSrc as ByteArray;
                                                      if (mapFileTarget.isDirectory)
                                                                mapFileTarget = mapFileTarget.resolvePath("_decompiled.map");
                                                      fileTime = new Date();
                                            else
                                                      throw new ArgumentError("Bsp File must be complety.");
                                            var mapFileStream:FileStream = new FileStream();
                                            mapFileStream.open(mapFileTarget, FileMode.WRITE);
                                            mapFileStream.writeBytes(bspSrcByte);
                                            mapFileStream.close();
    Now it is working. Thanks!

  • How to append Objects in a file.

    i have the following sample code ,
    its not read data properly and throws Stream Corrupted Exception in the appended record. ( at Last statement of try block ).
    Thanks,
    import java.io.*;
    public class IOError {
    public static void main(String[] args) {
    try {
    ObjectOutputStream oos = new ObjectOutputStream(
    new FileOutputStream("data.dat"));
    oos.writeObject(new String("string 1"));
    oos.writeObject(new String("string 2"));
    oos.flush();
    oos.close();
    ObjectInputStream ois = new ObjectInputStream(new FileInputStream("data.dat"));
    System.out.println("----- Round 1 Starts ---------");
    System.out.println((String) ois.readObject());
    System.out.println((String) ois.readObject());
    ois.close();
    ObjectOutputStream oos2 = new ObjectOutputStream(
    new FileOutputStream("data.dat",true)); // Appending Data
    oos2.writeObject(new String("string 3"));
    oos2.flush();
    oos2.close();
    ObjectInputStream ois2 = new ObjectInputStream(new FileInputStream("data.dat"));
    System.out.println("----- Round 2 Starts ---------");
    System.out.println((String) ois2.readObject());
    System.out.println((String) ois2.readObject());
    System.out.println((String) ois2.readObject()); // Stream Corrupted Exception
    catch(Exception e) {
    System.out.println(e);

    Nasty. When you open an ObjectOutputStream, it will write a few initializing bytes, so if you really want to append objects to a file, then after you read the first two strings, you need to create a new ObjectInputStream that will read those bytes.
    You could write an object indicating that now you are done with this ObjectOutputStream, so when you read the file and read this object, you know you have to create a new ObjectInputStream.
    oos.writeObject(new String("string 1"));
    oos.writeObject(new String("string 2"));
    oos.writeObject(null); // null could be used if you know you won't write any other null's in your code.
    //... append
    oos.writeObject(new String("string 3"));
    oos.writeObject(null);
    // read:
    FileInputStream fis = new FileInputStream("data.dat");
    ObjectInputStream ois2 = new ObjectInputStream(fis);
    String s;
    while ((s = (String)ois2.readObject()) != null) {
      System.out.println(s);
    ois2 = new ObjectInputStream(fis);
    while ((s = (String)ois2.readObject()) != null) {
      System.out.println(s);

  • How do i copy (save) an object to a file

    hello
    i am a programmer (but do not have so much experience in java more c, c++ and matlab)
    i have a question
    how do i copy an object to a file?
    i have Object obj and i want to have a class with two methods save ( save it to a file') and load (open this saved file)
    class SaveFile {
    Object obj
    // other fields perhaps if it is necessary
    public save (Object obj) {
    //code if which i don't know how to write and i need help from you
    public load (object obj) {
    //code if which i don't know how to write and i need help from you
    i believe it is a standard think whith a standard solution so i hope people can show the complete code (or pseudocode) because i am not so good in java's io.package

    Here's a small example that uses no expert features:import java.io.*;
    public class Test {
        public static void main (String[] parameters) throws Exception {
            write (new TestObject ("Test"), "test.obj");
            System.out.println (((TestObject) read ("test.obj")).getName ());
        private static class TestObject implements Serializable {
            private String name;
            public TestObject (String name) {
                this.name = name;
            public String getName () {
                return name;
        private static void write (Serializable object, String filename) throws IOException {
            ObjectOutputStream out = null;
            try {
                out = new ObjectOutputStream (new FileOutputStream (filename));
                out.writeObject (object);
                out.flush ();
            } finally {
                if (out != null) {
                    try {
                        out.close ();
                    } catch (IOException exception) {}
        private static Object read (String filename) throws ClassNotFoundException, IOException {
            ObjectInputStream in = null;
            try {
                in = new ObjectInputStream (new FileInputStream (filename));
                return in.readObject ();
            } finally {
                if (in != null) {
                    try {
                        in.close ();
                    } catch (IOException exception) {}
    }

  • Cant write an image contained object to a file

    HI, I am trying to save Vector object to a file which contains an image as one element.But i am not able to do that can anybody tell how to write the program.
    i wrote the following program to do that task. but it's not working
    can anybody tell what changes i have to make my program to work properly
    my code as follows
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    class ImageWrit implements Serializable
    Image img;
    public ImageWrit(){
    img= Toolkit.getDefaultToolkit().getImage("a9.bmp");
    class A{
    public static void main(String s[])
    FileOutputStream fout;
    ObjectOutputStream out ;
    Vector list = new Vector();
    list.add(new ImageWrit());
    try{
    fout = new FileOutputStream("a.txt");
    out = new ObjectOutputStream(fout);
    out.writeObject(list);
    System.out.println("object is saved");
    catch(Exception e)
    System.out.println("error");
    }

    It's easier to read your code (and help) when you use the code tags in you message...
    it's also helpfull to know why you are not able to do it, compiler error, or runtime error, or...
    third it's best to show a StackTrace in case of an Exception, like thatcatch(Exception e)
        System.out.println("error"); // this tell nothing about the Exception
        e.printStackTrace();
    }Maybe your problem is that the Image returned by ToolKit is not Serializable, you can search the internet for something like "java serializable image" for some hints... like making an ImageIcon of the image, which will be Serializable
        public ImageWrit() {
            img = new ImageIcon(Toolkit.getDefaultToolkit().getImage("a9.bmp"));
        }(also have a look at javax.imageio.ImageIO)

  • 3D PSD file import : how to change 3D anchor point in AE ? Challenge..!

    Hello everyone,
    I've successfully imported a 3D file from Photoshop Extended CS4 into AE CS4. In AE, I can sucessfully animate rotation of the 3D object.
    Here's the problem : I cannot change the 3D object's anchor point. I've tried changing the anchor point's coordinates on the controller layer of the 3D object layer, the numers change, but the anchor point remains at its initial position, as if it was locked.
    I also thought changing the anchor point in PS Extended before importing the file into AE, but PS Extended does not seem to have an anchor point changing tool.
    So I even reasoned back one step : changing the anchor point in my 3D software since the beginning. Well, not possible because PS Extended seems to create an average position for the anchor point when impoting a 3D file from a third party software. So useless changing the coordinates in the 3D software.
    Photoshop Extended 3D is the only possible workflow to import 3D objects into AE that I know of.
    So, is is possible to change the 3D anchor point directly in After Effects ? What blocks that point from being changed ?
    This is quite a challenging problem, good luck for finding a solution ! I'm very sure that this technique is commonly needed and used when working in 3D, and that it will be of great help for many designers that want 3D in After Effects !
    Thanks again !
    Note : please do not confuse simple After Effects standard 3D layer, with the 3D PSD file import layer, these are two totally different types

    Any further forward with this anyone?
    This is driving me insane as well...
    I'm trying to create a simple comp within AE and have my clients logo fly on behind their text while rotating in 3D space.
    The idea is for it to rotate on the X axis, but rotate within the logo itself (straight through the axis within the logo itself)
    But when I try to rotate it, the AP is about 2.5 "logo depths" away from the logo, so when the rotation of any axis starts it looks ridiculous.
    Are Adobe really trying to tell us that moving the AP is not possible within AE for imported Live Photoshop PSD files?
    Hopefully a solution comes along soon as I cannot for the life of me figure out a workaround to the problem......
    Cheers,
    Paul.

  • Is 3D file import possible in Motion 3?

    Is 3D file import possible in Motion 3?
    and
    If so what types work best?
    Thanks in advance.
    Eric

    What I thought Thank you for the conformation.
    Sooooo the only way to make an object or layer appear 3D in 3 is to add an Emitter with a birth rate of zero and an initial instance of 1 w/ face camera checked. Right?

  • Why Ipad resize CR2 file? From 10MP to 2,5MP?

    Why, when i use "Lightning Camera to USB adapter" to import into new Ipad  cr2 raw files  10 MP (2592x3888) of 9mb they are resized in cr2 2.5 MP (1288x1936) always of mb9?

    Let me explain better:
    I shot photo with Canon eos450d, ONLY file cr2 raw,no jpeg,  10MP resolution (2592x3888)
    Then, I use the "Lightning to USB Camera Adapter" to import cr2 file into new ipad
    Ipad import file raw in my photo library
    But, Ipad resize my file from 10 MP TO 2,5 MP, FROM 2592x3888 TO 1288x1936, but each WITH 9 MB

Maybe you are looking for

  • How to edit a program dynamically called from another program

    Hi all, Can anyone help me in coding for a program which call's another report dynamically from selection screen(for instance z_dynam_called) and retreive the whole content of the dynamically called program(z_dynam_called) into an internal table and

  • There's no sound when i connect to apple tv

    Hi, There's no sound when i connect to apple tv from my macbook pro, i bought it 10 days ago and it got the newest updates, and the volume is turned on on the computer.  The sound works when i connect ipad and iphone but not the macbook pro with reti

  • Itunes crashed my PC

    Duplicate post - sorry

  • Anyone else having problems with group messages in iOS 7?

    Upgrade to iOS7 went fine. Everything worked smoothly up until about 6:30pm Central time. Can't send/receive group messages in iMessage. Anyone else? Not sure if this is a problem with my phone or iMessage.

  • AlertRecipient list in Solman 7.1

    Hi Experts, I would like to know whether we can maintain different recepient lists for the different monitoring scenarios in Solman 7.1 Say I have 3 different teams for BI monitoring, PI monitoring and Miscellaneous (handles all other alerts). Teams