I can upload 1 MB images in visual force, it will be store in Document Object. Other wise if i Upload more then 1 MB images in Visual force page It will be Display Error Message
121373
Good Morning Friends,  I am creating a Visualforce for my users to upload photos and these photos are saved in the attachments object, but I wonder if there is any way before the picture is saved I can give a resize the image to 800x600 when the image is larger than this size, if less is saved normally.  Could anyone help me in this task? Thanks to all
20379
I just tried to make a post on another StackExchange site, but unfortunately, when I tried to take a picture of the problem, I got an error that the image must be less than 2 MB to upload it to StackExchange! The edit button on my Android photos app lets me draw over, crop, change tint/brightness/contrast, and add lots of WACKY EFFECTS to my pictures, but I can't figure out how to shrink the resolution! Thanks in advance.
31655
Hi is it possible to get images from go daddy  to visual force pages.if it possible can you explain clearly how the process is.
36687
I have created webform with title, description and upload file fields. And I have created views to display submission data in a grid view.   For images, it just giving me the image name with URL to image but it is not displaying as an image. I tried everything, but didn't find any solution. Please give me solution for displaying images in views.
101504
I added this code but when I upload 1 image, then 4 images of 1 image are uploaded, what is happening IMAGES : Not proper working PDF file upload : work fine Doc file upload : work fine rvt file upload : not working Now I am trying to upload multiple files my HTML code is: &lt;input type=&quot;file&quot; name=&quot;my_file_upload[]&quot; id=&quot;my_file_upload[]&quot; multiple=&quot;multiple&quot;&gt;  Code &gt; file custom.php if ( $_FILES ) {  $files = $_FILES[&quot;my_file_upload&quot;];   foreach ($files['name'] as $key =&gt; $value) {                     if ($files['name'][$key]) {              $file = array(                  'name' =&gt; $files['name'][$key],                 'type' =&gt; $files['type'][$key],                  'tmp_name' =&gt; $files['tmp_name'][$key],                  'error' =&gt; $files['error'][$key],                 'size' =&gt; $files['size'][$key]             );              $_FILES = array (&quot;my_file_upload&quot; =&gt; $file);              foreach ($_FILES as $file =&gt; $array) {                               $newupload = my_handle_attachment($file,$pid);              }         }      }  }  Function.php File code function my_handle_attachment($file_handler,$post_id,$set_thu=false) { // check to make sure its a successful upload if ($_FILES[$file_handler]['error'] !== UPLOAD_ERR_OK) __return_false();   require_once(ABSPATH . &quot;wp-admin&quot; . '/includes/image.php');  require_once(ABSPATH . &quot;wp-admin&quot; . '/includes/file.php');  require_once(ABSPATH . &quot;wp-admin&quot; . '/includes/media.php');   $attach_id = media_handle_upload( $file_handler, $post_id ); if ( is_numeric( $attach_id ) ) {   update_post_meta( $post_id, '_my_file_upload', $attach_id );  } return $attach_id; }
89146
I needed to reference an image in a , but it's not possible to upload a picture in a comment. So I used the workaround to  and delete the added image and text in the answer, ending up with a stack.imgur.com image link. I did this because the .  Why it's not possible to upload an image in a comment?
37194
I am trying to do an export of approx 30,000 attachments in our Salesforce Org,  Would anyone have been through a similar exercise and can advise best practice or the best way / tool to do this?  Kind Regards  matt
68726
Typically, each record in Salesforce will be 2kb large: .   However, let's say in an extreme example, the Opportunity object is related to 40 custom objects, each which has 100,000 records. The page would load much slower, especially in an older browser version.   1) Is there a 'rule of thumb' as to what the upper limit of how many related records an object should have?   2) Also, , there's an indication that there's some sort of tier-tuning per org based on the volume of data it has. Is that correct? And if so, are the volume ranges and respective tier-tuning capacity available?
110406
I have my model and in the info bar its show this   May I need to know how many polygons it has, but  there is no option to find polygons. Verts, Edge and Faces nothing polygon option there. In the website its say that the upload limit is 400,000 polygons. I did not get over that limit or how many polygons my model has?
75863
I've got a question about dealing  with huge PageObject. In the website that I'm currently testing there is a form with circa 50 inputs/dropdowns/selects.   In the current state my class got about 900 lines. It will be hard to debug, and in my opinion it's not so readable.   Is it consistent with the assumption of Page object model to create some subclasses and separate some WebElements and methods that are used by those elements? I'm using PageFactory so for declare all of the elements(I wrote circa 400 lines). It's so many.
94141
When I upload an image to Stack Overflow, I cannot see my JPEG file in my post. It's all blank. I've tried it with different files, but gotten the same result.
98786
How can I insert a full page image?  No blank space left in the page.  Bonus:  How can I add some text over the image?
114872
I'm loading an image from a file, and I want to know how to validate the image before it is fully read from the file.  string filePath = "image.jpg"; Image newImage = Image.FromFile(filePath);   The problem occurs when image.jpg isn't really a jpg.  For example, if I create an empty text file and rename it to image.jpg, an OutOfMemory Exception  will be thrown when image.jpg is loaded.  I'm looking for a function that will validate an image given a stream or a file path of the image.  Example function prototype  bool IsValidImage(string fileName); bool IsValidImage(Stream imageStream);
102771
I came across a  where a comprehensive example would be very useful. So I wrote an example program showing one way to solve their problem.  My problem is that when I was done creating it, and testing to make sure it worked, it was over 400 lines in 18 files. My example included source code, header files, and scripts for building the example in a variety of circumstances.   It's a working and tested, so it's of huge value to illustrate the tricky solution, but because it's all there, my response was huge! Is there a better way of posting my code dump?  Edit:  I guess there isn't a current "best way" to include a large chunk of code, so I made this a feature request and tried to add some ideas.  Perhaps code entries that are longer then a certain number of lines, or ones that have been specifically marked could initially be displayed as "collapsed", and someone could expand them if they want to see them?  Or maybe, like attaching images, users with enough reputation could attach an archive of files. They could be displayed as "attached code" (initially collapsed also).  Some problems have simple answers that unfortunately touch disproportionately large parts of the program, or can be solved in slightly different ways depending on the environment. I feel that stackoverflow needs a way of capturing these large solutions. Sometimes, they're large chunks of code. In my case, the code was small, but there were many files.  Using github or a similar code repository is great, but we risk linkrot (even for big guys like github) and loose the community editing, commenting, and voting abilities.  I understand the problems that could come from with people dumping whole "I can't get this to work" packages, but surely we already have a solution for that in moderation.  Edit again:  I'm starting to see that this may have been already addressed in posts like    , and    If you feel this a dupe, I'm open to having it "closed as already addressed"
19568
I made a huge project, wanted to reduce file size from 1.3GB to below 1GB. Compressing did not help. I removed objects from scene. Also textures. I then realized, the file size even was the same when I delete ALL objects. Why?  Download of sample:   Before deleting all: 1.2GB, after: 1.1GB.
35807
I have created a VF page and used "render as pdf"  &lt;apex:commandButton value="Save to Opportunity" action="{!savePdf}"  /&gt;   Its working fine when i am using above line without rerender and oncomplete but when i am adding rerender or oncomplete it is not working.I am able to save the PDF in attachment folder but when i am trying to open its showing  "Unable to load document"  Even if i remove oncomplete and use Rerender then also its saving the attachment in Attachment object and when i view ,it is not loading and says "Unable to load document"      &lt;apex:commandButton value="Save to Opportunity" action="{!savePdf}"  oncomplete="myClose();"/&gt;   Javascript Code  function myClose(){      self.close();     window.opener.location.href="/{!$CurrentPage.parameters.Id}";  }   Class Code  public void savePdf() {      PageReference pdf = Page.GenerateQuotePDF;     pdf.getParameters().put('id',parentId);      Attachment attach = new Attachment();      Blob body;     body = pdf.getContent();     attach.Body = body;     attach.Name = 'Opportunity'+ '.pdf';       attach.IsPrivate = false;     attach.ParentId = parentId;     attach.ContentType = 'application/pdf';     insert attach;     }     Please help..
109044
I have 251 images that are 128x128 in size; I need to create one big image that includes them all tiled together.  The image will be 32128x32128 in size if all goes well (Paint.NET says it will be 3.8GB in size, fun times)  I need to do this systematically, with a tool or a script since I might have to do this a few times - it's very tiresome to do by hand. I have programming skills, so if the solution requires that, then no problem.  If your idea does not work for such a big image but would work with a part of the images, then I'd like to hear about it anyway.