moved media handler implementations to mircoders/media for added flexibility.
[mir.git] / source / mircoders / entity / EntityImages.java
index f873f51..d495f0b 100755 (executable)
@@ -91,21 +91,15 @@ public class EntityImages extends EntityUploadedMedia
                return img_data;
        }
 
-       public void setImage(byte[] uploadData, String imageType)
+       public void setImage(byte[] uploadData)
            throws StorageObjectException {
-        int type = 0;
-
-        //hack -mh
-        if (imageType.equals("1"))
-            type = 1;
-         //end hack
 
                if (uploadData!=null) {
                        java.sql.Connection con=null;PreparedStatement pstmt=null;
                        try {
 
                                theLog.printDebugInfo("settimage :: making internal representation of image");
-                               WebdbImage webdbImage= new WebdbImage(uploadData,type);
+                               WebdbImage webdbImage= new WebdbImage(uploadData);
                                theLog.printDebugInfo("settimage :: made internal representation of image");
                                byte[] imageData = webdbImage.getImage();
                                theLog.printDebugInfo("settimage :: getImage");