2014-02-18 4 views
0

비트 맵 이미지를 webservice에 보내고 싶습니다. 난에서 오류가 발생하지만webservice에 비트 맵을 보내는 방법은 무엇입니까?

private void SendBiometricInfo2(Bitmap image) 
{ 
    _service = new Client.BioAuthenticationService.BioAuthenticationService(); 

    Client.BioAuthenticationService.AuthenticatedUserInfo userInfo = _service.CheckUserAuthentication2(image); 
} 

:

Webservice를 코드 : 여기

_service.CheckUserAuthentication2(image); 

오류 메시지입니다 :

다음

[WebMethod] 
public AuthenticatedUserInfo CheckUserAuthentication2(Bitmap fingerImage) 
{ 
} 

내 클라이언트 기능입니다

cannot convert from 'System.Drawing.Bitmap' to 'MIA.BioID.UserAuthentication.Client.BioAuthenticationService.Bitmap' 

이 문제를 해결하는 방법을 알려주십시오.

+0

SendBiometricInfo2에 대한 매개 변수에서 Bitmap을 완전하게 한정합니다. – AWinkle

+0

@ AWinkle 미안하지만 나는 당신이 의미하는 것을 이해하지 못했습니다. – goGud

+0

Visual Studio를 사용하여 웹 서비스를 만들고 있습니까? –

답변

0

다른 오브젝트 또는 웹 서비스에서 비트 맵이라는 메서드가 있습니까?

은 또한 당신의 웹 서비스 정의에 System.Drawing.Bitmap 같은 비트 맵을 정의

+0

System.Drawing을 사용하여 구현합니다. 그래서 솔루션 내 문제가 해결되지 않습니다. (( – goGud

+0

는 [의 WebMethod] 공공 AuthenticatedUserInfo CheckUserAuthentication2 (System.Drawing.Bitmap fingerImage는) 이 방법을 시도 ...하지만 난이 해결 didnt한다 I { } –

+0

는이 같은 일이되는 나는 이걸 어떻게 사용 했습니까? – goGud

0

enter image description here

는 "재사용의 종류를 말한다 고급 버튼 아래의 옵션이 있어야 서비스에 대한 참조를 만들 참조 어셈블리 ". 선택을 취소하고 도움이되는지 확인하십시오.

+0

이 속성을 어떻게 찾을 수 있습니까? – goGud

관련 문제