Solusinya yg gw tahu ada dua,
Cara 1. Simpan image ke database dalam bentuk Blob
    Keuntungan : saving dan retrieve data lebih mudah
    Kerugian : ukuran table/database menjadi besar yg mengakibatkan
searching lebih lambat
 
Cara 2. Simpan image ke folder. Database hanya menyimpan path dari image
tersebut.
    Keuntungan : 
        * ukuran database tetap terjaga = > searching lebih cepat
        
    Kerugian : 
        * jika upload image menggunakan metode folder sharing maka lebih
berisiko dari cara pertama. Folder sharing mensyaratkan ada privilege
write/read yang diberikan kepada user tertentu. Bagaimana jika salah
satu user yang memiliki hak ke sharing folder tersebut menghapus image?
Jika tidak ada audit trail, cara ini sangat beresiko.
        * jika upload  image menggunakan protokol HTTP, maka upload
image ke server lebih lambat dari cara pertama. Tetapi cara ini lebih
aman daripada menggunakan sharing folder.
        * jika upload image menggunakan protokol FTP , maka perlu effort
lebih untuk membuat program ftp client dan installasi ftp server di
server. Cara ini lebih cepat dari pada menggunakan sharing folder atau
menggunakan protokol HTTP. Selain itu, ftp server-nya bisa menggunakan
userid dan password, yang dapat di hardcode di aplikasi. Lebih secure.
Disarankan menggunakan cara ini.
        
 
 
 

Best regards

~subchan

 

 

 

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Nyom2
Sent: Thursday, June 12, 2008 8:58 AM
To: [email protected]
Subject: [Programmer-VB] Save File Gambar di Server



Netters yth,
Ada yg punya solusi untuk mensiasati, bilamana aplikasi memview gambar
yang diambil dari file, agar bisa dibuka oleh semua client . Apa mesti
disetiap client disimpan gambarnya, atau bisa diserver dan bisa
diakses/di-view oleh tiap client ? Aplikasi make VB60+MySQL. Tengkiu
 
+++nyom2+++

 


This email and any attachments are confidential and may also be privileged.  If 
you are not the addressee, do not disclose, copy, circulate or in any other way 
use or rely on the information contained in this email or any attachments.  If 
received in error, notify the sender immediately and delete this email and any 
attachments from your system.  Emails cannot be guaranteed to be secure or 
error free as the message and any attachments could be intercepted, corrupted, 
lost, delayed, incomplete or amended.  Standard Chartered PLC and its 
subsidiaries do not accept liability for damage caused by this email or any 
attachments and may monitor email traffic.

 

Standard Chartered PLC is incorporated in England with limited liability under 
company number 966425 and has its registered office at 1 Aldermanbury Square, 
London, EC2V 7SB.

 

Standard Chartered Bank ("SCB") is incorporated in England with limited 
liability by Royal Charter 1853, under reference ZC18.  The Principal Office of 
SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the 
United Kingdom, SCB is authorised and regulated by the Financial Services 
Authority under FSA register number 114276.

 

If you are receiving this email from SCB outside the UK, please click 
http://www.standardchartered.com/global/email_disclaimer.html to refer to the 
information on other jurisdictions.

Kirim email ke