DigestUtils package bluexmas.utils; import java.io.FileNotFoundException; import java.io.RandomAccessFile; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class DigestUtils { public static String extractStringHashSHA256(String str){ String SHA = ""; try{ MessageDigest sh = MessageDigest.getInstance("SHA-256"); sh.update(str.getBytes()); byte byteData[] =..
Spring Controller@Controller @RequestMapping(value = "/form/mfile_add") public class CMXFileAddController { @RequestMapping(method = RequestMethod.GET) public String getUploadForm(Model model) { MFile mFile = new MFile (); model.addAttribute("mFile", mFile); return "/form/mfile_add"; } mfile_add.jsp 자료 등록 제목 파일1 설명 Post 파일 업로드 처리@RequestMapping(method = RequestMethod.POST) public String create(M..
uses StrUtils; procedure TForm1.Button1Click(Sender: TObject); var tmpDirStr : String; offset : integer; function GetFindStr(SubFindStr : String; var offset : integer):string; var offsetOld, offset2 : integer; begin Result := ''; offset2 := 0; if SubFindStr[offset] = '/' then inc(offset2); offsetOld := offset; offset := PosEx('/', SubFindStr, offset + offset2); if offset>0 then begin Result := M..
FileCopy 출처 : http://delphi.about.com/od/fileio/a/untypedfiles.htm procedure FileCopy(const FileFrom, FileTo: string) ; var FromF, ToF: file; NumRead, NumWritten: Integer; Buffer: array[1..2048] of Byte; begin AssignFile(FromF, FileFrom) ; Reset(FromF, 1) ; AssignFile(ToF, FileTo) ; Rewrite(ToF, 1) ; repeat BlockRead(FromF, Buffer, SizeOf(Buffer), NumRead) ; BlockWrite(ToF, Buffer, NumRead, NumW..
- Total
- Today
- Yesterday
- koba2010
- ble
- KOBA
- Java
- 레이싱모델 익스트림 포토 페스티벌
- Delphi Tip
- Spring
- Mac
- JavaScript
- Xcode
- BPI-M4
- Delphi
- ubuntu
- MySQL
- 송주경
- NDK
- 지스타2007
- SAS
- 서울오토살롱
- 동경
- 튜닝쇼 2008
- oracle
- 일본여행
- flex
- Linux
- sas2009
- Spring MVC
- android
- ffmpeg
- 전예희
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |