What is the difference between “JPG” / “JPEG” / “PNG” / “BMP” / “GIF” / “TIFF” Image?

Yes. They are different file formats (and their file extensions). Wikipedia entries for each of the formats will give you quite a bit of information: JPEG (or JPG, for the file extension; Joint Photographic Experts Group) PNG (Portable Network Graphics) BMP (Bitmap) GIF (Graphics Interchange Format) TIFF (or TIF, for the file extension; Tagged Image … Read more

Why am I getting mime-type of .csv file as “application/octet-stream”?

In times like these, the official HTTP specification is always helpful. From RFC 2616 7.2.1 (my emphasis added): Any HTTP/1.1 message containing an entity-body SHOULD include a Content-Type header field defining the media type of that body. If and only if the media type is not given by a Content-Type field, the recipient MAY attempt … Read more