データベースで画像をバイト配列として検索しています。このコンテンツをマークアップイメージを使用してファイルとして表示したいのですが、ここでは機能しません。
// Controller which get my image and put into $scope.
function MyController($scope, $http, $location) {
var url = '/json/FindImage?id=1';
$http.get(url).success(function(result) {
$scope.image = result.Image;
}
}
// HTML
<!-- It doesn't work -->
<img src="{{image}}" />
<!-- It doesn't work also -->
<img ng-src="{{image}}" />
何か案が?皆さん、ありがとうございました!